MeshNgonList.AddPlanarNgons Method (Double, Int32, Int32, Boolean)

MeshNgonListAddPlanarNgons Method (Double, Int32, Int32, Boolean)

Add an ngon for each group of connected coplanar faces.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Syntax
public int AddPlanarNgons(
	double planarTolerance,
	int minimumNgonVertexCount,
	int minimumNgonFaceCount,
	bool allowHoles
)
Public Function AddPlanarNgons ( 
	planarTolerance As Double,
	minimumNgonVertexCount As Integer,
	minimumNgonFaceCount As Integer,
	allowHoles As Boolean
) As Integer

Parameters

planarTolerance
Type: SystemDouble
3d distance tolerance for coplanar test.
minimumNgonVertexCount
Type: SystemInt32
Mininimum number of vertices for an ngon.
minimumNgonFaceCount
Type: SystemInt32
Minimum number of faces for an ngon.
allowHoles
Type: SystemBoolean
Determines whether the ngon can have inner boundaries.

Return Value

Type: Int32
Number of ngons added to the mesh.
Version Information

Rhino for Windows

Supported in: 6.8
See Also