M_Rhino_Geometry_Collections_MeshNgonList_AddPlanarNgons_1 - mcneel/rhinocommon-api-docs GitHub Wiki

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

Add an ngon for each group of connected coplanar faces.

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

Syntax

C#

public int AddPlanarNgons(
	double planarTolerance,
	int minimumNgonVertexCount,
	int minimumNgonFaceCount,
	bool allowHoles
)

VB

Public Function AddPlanarNgons ( 
	planarTolerance As Double,
	minimumNgonVertexCount As Integer,
	minimumNgonFaceCount As Integer,
	allowHoles As Boolean
) As Integer

Parameters

 

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

Return Value

Type: Int32
Number of ngons added to the mesh.

Version Information

Supported in: 6.0.16224.21491

See Also

Reference

MeshNgonList Class
AddPlanarNgons Overload
Rhino.Geometry.Collections Namespace

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