Click or drag to resize

RegionShapeGetCentroid Method

Get the centroid coordinates of a region. The curve is divided into lines with the specified number and the centroid is measured.

Namespace:  RootPro.RootProCAD
Assembly:  RootPro.RootProCAD.Library (in RootPro.RootProCAD.Library.dll) Version: 12.0.0.0 (12.0.0.0)
Syntax
public abstract Point2d GetCentroid(
	int curveDivisors
)

Parameters

curveDivisors
Type: SystemInt32
Number of divisions of the curve. Values in the range of 100 to 50000.

Return Value

Type: Point2d
Point2d that represents the centroid coordinates.
See Also