Correa 1
C++ library with Python bindings to analyse the shape of simple closed curves in R^2
Loading...
Searching...
No Matches
correa::PolygonBuilder Class Reference

#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)
 

Detailed Description

Used to import and build polygon objects. Cleans the input file for an optimal representation

Member Function Documentation

◆ boundaryEdges()

int correa::PolygonBuilder::boundaryEdges ( Polygon & polygon)

get a list of boundary edges

Parameters
polygon

◆ buildPolygon()

bool correa::PolygonBuilder::buildPolygon ( int npoint,
double * Coord,
Polygon & polygon )
Parameters
npointnumber of input points
Coordreference to the imported coordinates
polygonthe polygon you want to build

◆ clean_points()

void correa::PolygonBuilder::clean_points ( int * Np,
double * coord )

clean the points of the polygon, to remove unneccesary ones

Parameters
Npthe number of points
coordthe coordinates to clean

◆ triangulatePolygon()

bool correa::PolygonBuilder::triangulatePolygon ( Polygon & polygon,
int * ntrig,
int * triangle )

generate a triangulation of a polygon

Parameters
polygonthe polygon you want to triangulate
ntrigwhere to store the number of triangles
trianglewhere to store the triangles

◆ trigEdges()

int correa::PolygonBuilder::trigEdges ( Polygon & polygon,
int ntrig,
int * indices )

trigEd


The documentation for this class was generated from the following file: