Skip to content

Commit

Permalink
merged 8.x and updated python3
Browse files Browse the repository at this point in the history
  • Loading branch information
eirannejad committed Jun 15, 2022
1 parent 8245a46 commit 8c3d46e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python3/rhinoscript/mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -836,7 +836,7 @@ def MeshMeshIntersection(mesh1, mesh2, tolerance=None):
"""Calculates the intersections of a mesh object with another mesh object
Parameters:
mesh1, mesh2 (guid): identifiers of meshes
tolerance (number, optional): the intersection tolerance
tolerance (number, optional): the intersection tolerance. Defaults to ModelAbsoluteTolerance * MeshIntersectionsTolerancesCoefficient
Returns:
list(point, ...): of points that define the vertices of the intersection curves
Example:
Expand All @@ -852,7 +852,8 @@ def MeshMeshIntersection(mesh1, mesh2, tolerance=None):
"""
mesh1 = rhutil.coercemesh(mesh1, True)
mesh2 = rhutil.coercemesh(mesh2, True)
if tolerance is None: tolerance = Rhino.RhinoMath.ZeroTolerance
if tolerance is None:
tolerance = scriptcontext.doc.ModelAbsoluteTolerance * Rhino.Geometry.Intersect.Intersection.MeshIntersectionsTolerancesCoefficient
polylines = Rhino.Geometry.Intersect.Intersection.MeshMeshAccurate(mesh1, mesh2, tolerance)
if polylines: return list(polylines)

Expand Down

0 comments on commit 8c3d46e

Please sign in to comment.