Click or drag to resize

MeshVertexListAlign Method (Double, Boolean, IEnumerableBoolean)

Moves mesh vertices 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.

All vertices are considered, not only those on naked edges. Use whichVertices to restrict which ones are moved.

See the

_AlignVertices
Rhino command for more information.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public int Align(
	double distance,
	bool average,
	IEnumerable<bool> whichVertices = null
)

Parameters

distance
Type: SystemDouble
Distance that should not be exceed when modifying the mesh.
average
Type: SystemBoolean
If true, vertices that are candidates for one another are moved towards each other, rather than one of them being privileged and the others moved onto it.
whichVertices (Optional)
Type: System.Collections.GenericIEnumerableBoolean
If not null, defines which vertices should be considered for adjustment.

Return Value

Type: Int32
If the operation succeeded, the number of mesh vertices that were moved, or -1 on error.
See Also