MeshClash

References
public class MeshClash
Represents a particular instance of a clash or intersection between two meshes.

Properties

ClashPoint

#Since v5.0
public Point3d ClashPoint { get; }
If valid, then the sphere centered at ClashPoint of ClashRadius distance intersects the clashing meshes.

ClashRadius

#Since v5.0
public double ClashRadius { get; }
Gets the clash, or intersection, radius.

MeshA

#Since v5.0
public Mesh MeshA { get; }
Gets the first mesh.

MeshB

#Since v5.0
public Mesh MeshB { get; }
Gets the second mesh.

Methods

FindDetail

#Since v7.0
public static Mesh[] FindDetail(RhinoObject objA, RhinoObject objB, double distance, MeshType meshType, MeshingParameters meshingParameters)
Finds all of the mesh faces on each of two Rhino objects that interfere within a clash distance. This function uses the object's mesh to calculate the interferences. Acceptable object types include: BrepObject, ExtrusionObject, MeshObject, and SubDObject.
objA (RhinoObject)The first Rhino object.
objB (RhinoObject)The second Rhino object.
distance (double)The largest distance at which a clash can occur.
meshType (MeshType)The type of mesh to be used for the calculation.
meshingParameters (MeshingParameters)The meshing parameters used to generate meshes for the calculation.
The resulting meshes are sub-meshes of the input meshes if successful, or an empty array on error.

FindDetail

#Since v7.0
public static Mesh[] FindDetail(RhinoObject objA, RhinoObject objB, double distance)
Finds all of the mesh faces on each of two Rhino objects that interfere within a clash distance. This function uses the object's mesh to calculate the interferences. Acceptable object types include: BrepObject, ExtrusionObject, MeshObject, and SubDObject.
objA (RhinoObject)The first Rhino object.
objB (RhinoObject)The second Rhino object.
distance (double)The largest distance at which a clash can occur.
The resulting meshes are sub-meshes of the input meshes if successful, or an empty array on error.

Search

#Since v5.0
public static MeshClash[] Search(IEnumerable<Mesh> setA, IEnumerable<Mesh> setB, double distance, int maxEventCount)
Searches for locations where the distance from a mesh in one set of meshes is less than distance to another mesh in a second set of meshes.
setA (IEnumerable<Mesh>)The first set of meshes.
setB (IEnumerable<Mesh>)The second set of meshes.
distance (double)The largest distance at which there is a clash. All values smaller than this cause a clash as well.
maxEventCount (int)The maximum number of clash objects.
An array of clash objects.

Search

#Since v5.0
public static MeshClash[] Search(Mesh meshA, IEnumerable<Mesh> setB, double distance, int maxEventCount)
Searches the locations where the distance from the first mesh to a mesh in the second set of meshes is less than the provided value.
meshA (Mesh)The first mesh.
setB (IEnumerable<Mesh>)The second set of meshes.
distance (double)The largest distance at which there is a clash. All values smaller than this cause a clash as well.
maxEventCount (int)The maximum number of clash objects.
An array of clash objects.

Search

#Since v5.0
public static MeshClash[] Search(Mesh meshA, Mesh meshB, double distance, int maxEventCount)
Searches the locations where the distance from the first mesh to the second mesh is less than the provided value.
meshA (Mesh)The first mesh.
meshB (Mesh)The second mesh.
distance (double)The largest distance at which there is a clash. All values smaller than this cause a clash as well.
maxEventCount (int)The maximum number of clash objects.
An array of clash objects.

Search

#Since v7.0
public static MeshInterference[] Search(IEnumerable<RhinoObject> setA, IEnumerable<RhinoObject> setB, double distance, MeshType meshType, MeshingParameters meshingParameters)
Searches for locations where the distance from a RhinoObject, in one set of objects, is less than the specified distance to another RhinoObject in a second set of objects. This function uses the object's mesh to calculate the interferences. Acceptable object types include: BrepObject, ExtrusionObject, MeshObject, and SubDObject.
setA (IEnumerable<RhinoObject>)The first set of Rhino objects.
setB (IEnumerable<RhinoObject>)The second set of Rhino objects.
distance (double)The largest distance at which a clash can occur.
meshType (MeshType)The type of mesh to be used for the calculation.
meshingParameters (MeshingParameters)The meshing parameters used to generate meshes for the calculation.
An array of mesh interference object if successful, or an empty array on failure.

Search

#Since v7.0
public static MeshInterference[] Search(IEnumerable<RhinoObject> setA, IEnumerable<RhinoObject> setB, double distance)
Searches for locations where the distance from a RhinoObject, in one set of objects, is less than the specified distance to another RhinoObject in a second set of objects. This function uses the object's mesh to calculate the interferences. Acceptable object types include: BrepObject, ExtrusionObject, MeshObject, and SubDObject.
setA (IEnumerable<RhinoObject>)The first set of Rhino objects.
setB (IEnumerable<RhinoObject>)The second set of Rhino objects.
distance (double)The largest distance at which a clash can occur.
An array of mesh interference object if successful, or an empty array on failure.