MeshNgonList.GetNgonCenter Method (MeshNgon)

MeshNgonListGetNgonCenter Method (MeshNgon)

Gets the center point of an ngon.

This the average of the corner points.

Namespace:  Rhino.Geometry.Collections
Assembly:  RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntax
public Point3d GetNgonCenter(
	MeshNgon ngon
)
Public Function GetNgonCenter ( 
	ngon As MeshNgon
) As Point3d

Parameters

ngon
Type: Rhino.GeometryMeshNgon
An ngon.

Return Value

Type: Point3d
The center point.
See Also