BRL-CAD
polygon.h File Reference
#include "common.h"
#include "vmath.h"
#include "bn/defines.h"
#include "bn/tol.h"
Include dependency graph for polygon.h:
This graph shows which files directly or indirectly include this file:

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 self-intersecting 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, counter-clockwise. More...