M_Rhino_Geometry_Collections_MeshFaceList_GetFaceCenter - mcneel/rhinocommon-api-docs GitHub Wiki
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
C#
public Point3d GetFaceCenter(
int faceIndex
)
VB
Public Function GetFaceCenter (
faceIndex As Integer
) As Point3d
- faceIndex
- Type: System.Int32
A face index.
Type: Point3d
The center point.
Supported in: 6.0.16224.21491, 5D58w