15 #ifndef TRIANGULATOR3_H
16 #define TRIANGULATOR3_H
18 #include "pandabase.h"
19 #include "triangulator.h"
37 INLINE
int add_vertex(
double x,
double y,
double z);
41 MAKE_SEQ(get_vertices, get_num_vertices, get_vertex);
44 INLINE
const LPlaned &get_plane()
const;
53 #include "triangulator3.I"
int get_num_vertices() const
Returns the number of vertices in the pool.
void triangulate()
Does the work of triangulating the specified polygon.
This class can triangulate a convex or concave polygon, even one with holes.
const LPoint2d & get_vertex(int n) const
Returns the nth vertex.
void clear()
Removes all vertices and polygon specifications from the Triangulator, and prepares it to start over...
This is an extension of Triangulator to handle polygons with three-dimensional points.
This is a three-component point in space (as opposed to a three-component vector, which represents a ...
int add_vertex(const LPoint2d &point)
Adds a new vertex to the vertex pool.