M_Rhino_Geometry_Collections_MeshFaceList_GetFaceCenter - mcneel/rhinocommon-api-docs GitHub Wiki

MeshFaceList.GetFaceCenter Method

Gets the center point of a face. For a triangular face, this is the centroid or barycenter.

For a quad, this is the avarage of four coner points.

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

Syntax

C#

public Point3d GetFaceCenter(
	int faceIndex
)

VB

Public Function GetFaceCenter ( 
	faceIndex As Integer
) As Point3d

Parameters

 

faceIndex
Type: System.Int32
A face index.

Return Value

Type: Point3d
The center point.

Version Information

Supported in: 6.0.16224.21491, 5D58w

See Also

Reference

MeshFaceList Class
Rhino.Geometry.Collections Namespace

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