Skip to content

Commit

Permalink
updated for RHino 8
Browse files Browse the repository at this point in the history
  • Loading branch information
scotttd committed Jan 15, 2024
1 parent 14380e5 commit 9b61608
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion rhinopython/SampleBoxSpaceMorph.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def MorphPoint(self, point):

def SampleBoxSpaceMorph():
obj_id = rs.GetObject("Select surface or polysurface", rs.filter.surface and rs.filter.polysurface)
if None == obj_id: return
if obj_id is None: return

brep = rs.coercebrep(obj_id)
if brep is None: return
Expand Down
4 changes: 2 additions & 2 deletions rhinopython/SampleCurvature.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def SampleCurvature():
go.GeometryFilter = Rhino.DocObjects.ObjectType.Curve
go.SubObjectSelect = False
go.Get()
if go.CommandResult() <> Rhino.Commands.Result.Success:
if go.CommandResult() != Rhino.Commands.Result.Success:
return go.CommandResult()

curve = go.Object(0).Curve()
Expand All @@ -62,7 +62,7 @@ def SampleCurvature():
gp = SampleGetCurvaturePoint(curve)
gp.SetCommandPrompt("Select point on curve for curvature measurement")
gp.Get()
if gp.CommandResult() <> Rhino.Commands.Result.Success:
if gp.CommandResult() != Rhino.Commands.Result.Success:
return gp.CommandResult()

# One final curvature calculation
Expand Down

0 comments on commit 9b61608

Please sign in to comment.