MeshClash
ReferencesRepresents a particular instance of a clash or intersection between two meshes.
Properties
If valid, then the sphere centered at ClashPoint of ClashRadius distance intersects the clashing meshes.
Methods
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.
Parameters:
| 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. |
Returns: The resulting meshes are sub-meshes of the input meshes if successful, or an empty array on error.
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.
Parameters:
| objA (RhinoObject) | The first Rhino object. |
| objB (RhinoObject) | The second Rhino object. |
| distance (double) | The largest distance at which a clash can occur. |
Returns: The resulting meshes are sub-meshes of the input meshes if successful, or an empty array on error.
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.
Parameters:
| 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. |
Returns: An array of clash objects.
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.
Parameters:
| 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. |
Returns: An array of clash objects.
Searches the locations where the distance from the first mesh to the second mesh is less than the provided value.
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.
Parameters:
| 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. |
Returns: An array of mesh interference object if successful, or an empty array on failure.
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.
Parameters:
| 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. |
Returns: An array of mesh interference object if successful, or an empty array on failure.