Correa 1
C++ library with Python bindings to analyse the shape of simple closed curves in R^2
|
#include <PolygonBuilder.h>
Public Member Functions | |
void | clean_points (int *Np, double *coord) |
bool | buildPolygon (int npoint, double *coord, Polygon &polygon) |
bool | triangulatePolygon (Polygon &polygon, int *ntrig, int *triangles) |
int | boundaryEdges (Polygon &polygon) |
int | trigEdges (Polygon &polygon, int ntrig, int *indices) |
Used to import and build polygon objects. Cleans the input file for an optimal representation
int correa::PolygonBuilder::boundaryEdges | ( | Polygon & | polygon | ) |
get a list of boundary edges
polygon |
bool correa::PolygonBuilder::buildPolygon | ( | int | npoint, |
double * | Coord, | ||
Polygon & | polygon ) |
npoint | number of input points |
Coord | reference to the imported coordinates |
polygon | the polygon you want to build |
void correa::PolygonBuilder::clean_points | ( | int * | Np, |
double * | coord ) |
clean the points of the polygon, to remove unneccesary ones
Np | the number of points |
coord | the coordinates to clean |
bool correa::PolygonBuilder::triangulatePolygon | ( | Polygon & | polygon, |
int * | ntrig, | ||
int * | triangle ) |
generate a triangulation of a polygon
polygon | the polygon you want to triangulate |
ntrig | where to store the number of triangles |
triangle | where to store the triangles |
int correa::PolygonBuilder::trigEdges | ( | Polygon & | polygon, |
int | ntrig, | ||
int * | indices ) |
trigEd