Click or drag to resize

IntersectionMeshMeshTwoSets Method

Intersects two sets of meshes with each other. Overlaps and perforations are provided in the output list.

Only events between a mesh of the first set and a mesh of the second set are computed. Intersections among meshes of the same set, and self-intersections within a single mesh, are ignored.

Tolerance can be specified.

We suggest to use the document tolerance multiplied by MeshIntersectionsTolerancesCoefficient.

Namespace:  Rhino.Geometry.Intersect
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static bool MeshMeshTwoSets(
	IEnumerable<Mesh> setA,
	IEnumerable<Mesh> setB,
	double tolerance,
	out Polyline[] intersections,
	bool overlapsPolylines,
	out Polyline[] overlapsPolylinesResult,
	bool overlapsMesh,
	out Mesh overlapsMeshResult,
	TextLog textLog,
	CancellationToken cancel,
	IProgress<double> progress
)

Parameters

setA
Type: System.Collections.GenericIEnumerableMesh
The first mesh input list. This cannot be null. Null entries are tolerated.
setB
Type: System.Collections.GenericIEnumerableMesh
The second mesh input list. This cannot be null. Null entries are tolerated.
tolerance
Type: SystemDouble
A tolerance value. If negative, the positive value will be used. WARNING! Good tolerance values are in the magnitude of 10^-7, or RhinoMath.SqrtEpsilon*10.
intersections
Type: Rhino.GeometryPolyline
Returns the intersections.
overlapsPolylines
Type: SystemBoolean
If true, overlaps are computed and returned.
overlapsPolylinesResult
Type: Rhino.GeometryPolyline
If requested, overlaps are returned here.
overlapsMesh
Type: SystemBoolean
If true, an overlaps mesh is computed and returned.
overlapsMeshResult
Type: Rhino.GeometryMesh
If requested, overlaps are returned here.
textLog
Type: Rhino.FileIOTextLog
A text log, or null.
cancel
Type: System.ThreadingCancellationToken
A cancellation token to stop the computation at a given point.
progress
Type: SystemIProgressDouble
A progress reporter to inform the user about progress, or null. The reported value is indicative.

Return Value

Type: Boolean
True, if the operation succeeded, otherwise false.
See Also