Click or drag to resize

MeshVertexListAlign Method (IEnumerableMesh, Double, Boolean, Boolean)

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.

See the

_AlignVertices
Rhino command for more information.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static int Align(
	IEnumerable<Mesh> meshes,
	double distance,
	bool onlyNaked,
	bool average
)

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.
onlyNaked
Type: SystemBoolean
If true, only vertices that lie along naked edges are moved, and only such vertices are used as targets to align to.
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.

Return Value

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