formZ SDK | 5.0 API Reference | System | Math
Description
Finds the center of gravity for a polygon.
The polygon is defined by the 3d points in the pts array.
npts indicates how many 3d points are in the polygon, as passed in pts.
Plugin Prototype
fzrt_error_td fz_math_3d_cog_of_polygon(
pts, | |
fzrt_int | npts, |
center ) |
Parameters
pts [Input]
polygon points array
npts [Input]
number of 3d points in polygon
center [Result]
center of gravity of polygon
Returns
Error codes
Availability
5.0.0.0
Example Files
See Also
fz_math_3d_normal_of_polygon,,
Function Set
Defined in