MeshVertexList.Align Method (IEnumerable(Mesh), Double, IEnumerable(IEnumerable(Boolean)))

MeshVertexListAlign Method (IEnumerableMesh, Double, IEnumerableIEnumerableBoolean)

Moves mesh vertices that belong to naked edges to neighboring vertices, within the specified distance.

This forces unaligned mesh vertices to the same location and is helpful to clean meshes for 3D printing.

See the

_AlignMeshVertices
Rhino command for more information.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public static int Align(
	IEnumerable<Mesh> meshes,
	double distance,
	IEnumerable<IEnumerable<bool>> whichVertices = null
)
Public Shared Function Align ( 
	meshes As IEnumerable(Of Mesh),
	distance As Double,
	Optional whichVertices As IEnumerable(Of IEnumerable(Of Boolean)) = Nothing
) As Integer

Parameters

meshes
Type: System.Collections.GenericIEnumerableMesh
The enumerable of meshes that need to have vertices adjusted.
distance
Type: SystemDouble
Distance that should not be exceed when modifying the mesh.
whichVertices (Optional)
Type: System.Collections.GenericIEnumerableIEnumerableBoolean
If not null, defines which vertices should be considered for adjustment.

If this parameter is non-null, then all items within it have to be non-null as well, defining for each mesh, which vertices to adjust.

Return Value

Type: Int32
If the operation succeeded, the number of moved vertices, or -1 on error.
Version Information

Rhino for Windows

Supported in: 6.8
See Also