Click or drag to resize

VertexAlignerSuggestDistance Method

Suggests a distance for Align(IEnumerableGeometryBase, Double, Boolean, Boolean) from the geometry itself, so the gaps do not have to be measured first.

A vertex whose nearest neighbour of all belongs to another object was meant to be shared with it. Within one mesh or SubD, a cluster of naked vertices at least 1000 times closer together than to any other naked vertex of that object was meant to be one vertex.

The suggestion closes all of these gaps, rounded up to the next power of ten unless that would reach the spacing next to a gap.

Namespace:  Rhino.Geometry
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 9.0
Syntax
public static double SuggestDistance(
	IEnumerable<GeometryBase> geometry
)

Parameters

geometry
Type: System.Collections.GenericIEnumerableGeometryBase
The geometry that would be aligned. A single object is enough.

Return Value

Type: Double
A distance greater than zero, or zero when no such gap is found.
See Also