BRLCAD

Go to the source code of this file.
Functions  
int  bn_polygon_area (fastf_t *area, size_t npts, const point_t *pts) 
Functions for working with polygons. More...  
int  bn_polygon_centroid (point_t *cent, size_t npts, const point_t *pts) 
Calculate the centroid of a non selfintersecting polygon. More...  
int  bn_polygon_mk_pts_planes (size_t *npts, point_t **pts, size_t neqs, const plane_t *eqs) 
Calculate for an array of plane_eqs, which build a polyhedron, the point_t's for each face. More...  
int  bn_polygon_sort_ccw (size_t npts, point_t *pts, plane_t cmp) 
Sort an array of point_ts, building a convex polygon, counterclockwise. More...  