M_Rhino_Geometry_Mesh_CollapseFacesByEdgeLength - mcneel/rhinocommon-api-docs GitHub Wiki

Mesh.CollapseFacesByEdgeLength Method

Collapses multiple mesh faces, with greater/less than edge length, based on the principles found in Stan Melax's mesh reduction PDF, see http://pomax.nihongoresources.com/downloads/PolygonReduction.pdf

Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll) Version: Rhino 6.0

Syntax

C#

public int CollapseFacesByEdgeLength(
	bool bGreaterThan,
	double edgeLength
)

VB

Public Function CollapseFacesByEdgeLength ( 
	bGreaterThan As Boolean,
	edgeLength As Double
) As Integer

Parameters

 

bGreaterThan
Type: System.Boolean
Determines whether edge with lengths greater than or less than edgeLength are collapsed.
edgeLength
Type: System.Double
Length with which to compare to edge lengths.

Return Value

Type: Int32
Number of edges (faces) that were collapsed.

Remarks

This number may differ from the initial number of edges that meet the input criteria because the lengths of some initial edges may be altered as other edges are collapsed.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

Mesh Class
Rhino.Geometry Namespace

⚠️ **GitHub.com Fallback** ⚠️