|
Index
C++ Code Documentation
triang::Triangle
Children: triang::Triangulator
File: GEOM/triang/Triangle.H
C++ Wrapper for TrianglBase
public:
- Triangle();
- virtual ~Triangle();
- typedef pair<Real,Real> Point;
- typedef vector<Point> PointList;
- typedef vector<uint> IntList;
- typedef vector<uint> Face;
- void triangulate( PointList &vertex_out, vector<Face> &face_out, vector<Curve> const &vertex_in, PointList &hole_in );
![](pixel.gif) | compute triangulation - with holes (calls 'triangle') input: vertex_in, edge_in, hole_in output: vertex_out, face_out | |
- void triangulate( PointList &vertex_out, vector<Face> &face_out, vector<Real> const &area_in );
![](pixel.gif) | refine a triangulation - with area constraints (calls 'triangle') uses a previous triangulation | |
- void max_area( Real max_area );
![](pixel.gif) | set the maximum area (set to 0.0 to disable) | |
- Real max_area() const;
- void min_angle( Real min_angle );
![](pixel.gif) | set the minimum angle in degrees (set to 0.0 to disable) | |
- Real min_angle() const;
protected:
- Real _max_area;
- Real _min_angle;
private:
- class TriangleData;
- TriangleData &operator=( TriangleData const &a );
- ~TriangleData();
- void initialize();
- void clear();
- void copy( TriangleData const &a );
- triangulateio *data();
- triangulateio const *data() const;
- void import_vertex( vector<Curve> const &vertex );
- void import_edge( vector<pair<uint, uint> > const &edge );
- void import_hole( PointList const &hole );
- void import_face( vector<Face> const &face );
- void import_area( vector<Real> const &area );
- void export_( PointList &vertex, vector<Face> &face ) const;
- static void DEBUG_COMPARE( TriangleData const *t1, TriangleData const *t2 );
- triangulateio _;
- };
- void triangulate( TriangleData &data_out, TriangleData const &data_in, bool refine = false );
- TriangleData *_current_data;
- static uint const OFFSET = 0;
- static void *_malloc( size_t n );
- Triangle( Triangle const & );
![](pixel.gif) | disabled copy constructor | |
- Triangle &operator=( Triangle const & );
![](pixel.gif) | disabled assignment operator | |
|