formZ SDK | 5.0 API Reference | System | Math

# fz_math_2d_filter_polygon_pts

Description

Filters duplicate polygon points.
The polygon is defined by the 2d points in the pts array. npts indicates how many 2d points are in the polygon, as passed in pts.
Returns the new number of points in the npts argument.

Plugin Prototype

fzrt_error_td fz_math_2d_filter_polygon_pts(

fz_xy_td * | pts,
fzrt_int * | npts,
fzrt_boolean | closed )

Parameters

pts [Input]

polygon points array

npts [Input, Result]

in : number of 2d points in the polygon
out : number of non-duplicate 2d points in the polygon

closed [Input]

is the polygon closed

Returns

Error codes

Availability

5.0.0.0

Example Files

util_math_2d.fsl

See Also

,, , fz_math_2d_area_of_polygon,

Function Set

fz_math_fset

Defined in

fz_math_api.h