M_Rhino_Geometry_Collections_MeshVertexList_Align - mcneel/rhinocommon-api-docs GitHub Wiki
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) Version: Rhino 6.0
C#
public static int Align(
IEnumerable<Mesh> meshes,
double distance,
IEnumerable<IEnumerable<bool>> whichVertices = null
)
VB
Public Shared Function Align (
meshes As IEnumerable(Of Mesh),
distance As Double,
Optional whichVertices As IEnumerable(Of IEnumerable(Of Boolean)) = Nothing
) As Integer
- meshes
- Type: System.Collections.Generic.IEnumerable(Mesh)
The enumerable of meshes that need to have vertices adjusted. - distance
- Type: System.Double
Distance that should not be exceed when modifying the mesh. - whichVertices (Optional)
- Type: System.Collections.Generic.IEnumerable(IEnumerable(Boolean))
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.
Type: Int32
If the operation succeeded, the number of moved vertices, or -1 on error.
Supported in: 6.0.16224.21491
MeshVertexList Class
Align Overload
Rhino.Geometry.Collections Namespace