M_Rhino_Geometry_Collections_MeshFaceList_ConvertTrianglesToQuads - mcneel/rhinocommon-api-docs GitHub Wiki

MeshFaceList.ConvertTrianglesToQuads Method

Joins adjacent triangles into quads if the resulting quad is 'nice'.

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

Syntax

C#

public bool ConvertTrianglesToQuads(
	double angleToleranceRadians,
	double minimumDiagonalLengthRatio
)

VB

Public Function ConvertTrianglesToQuads ( 
	angleToleranceRadians As Double,
	minimumDiagonalLengthRatio As Double
) As Boolean

Parameters

 

angleToleranceRadians
Type: System.Double
Used to compare adjacent triangles' face normals. For two triangles to be considered, the angle between their face normals has to be <= angleToleranceRadians. When in doubt use RhinoMath.PI/90.0 (2 degrees).
minimumDiagonalLengthRatio
Type: System.Double
( <= 1.0) For two triangles to be considered the ratio of the resulting quad's diagonals (length of the shortest diagonal)/(length of longest diagonal). has to be >= minimumDiagonalLengthRatio. When in doubt us .875.

Return Value

Type: Boolean
true on success, false on failure.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

MeshFaceList Class
Rhino.Geometry.Collections Namespace

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