MeshFaceListGetFaceCenter Method |
Rhino 5 for Windows
Gets the center point of a face.
For a triangular face, this is considered the centroid or barycenter.
For a quad, this is considered the bimedians intersection
(the avarage of four points).
Namespace: Rhino.Geometry.CollectionsAssembly: RhinoCommon (in RhinoCommon.dll) Version: 5.1.30000.17 (5.13.60913.21340)
Syntaxpublic Point3d GetFaceCenter(
int faceIndex
)
Public Function GetFaceCenter (
faceIndex As Integer
) As Point3d
Parameters
- faceIndex
- Type: SystemInt32
A face index.
Return Value
Type:
Point3dThe center point.
See Also