14 #ifndef TRIANGULATOR3_H 15 #define TRIANGULATOR3_H 34 INLINE
int add_vertex(
double x,
double y,
double z);
36 INLINE
int get_num_vertices()
const;
37 INLINE
const LPoint3d &
get_vertex(
int n)
const;
38 MAKE_SEQ(get_vertices, get_num_vertices, get_vertex);
41 INLINE
const LPlaned &get_plane()
const;
43 MAKE_SEQ_PROPERTY(vertices, get_num_vertices, get_vertex);
44 MAKE_PROPERTY(plane, get_plane);
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void triangulate()
Does the work of triangulating the specified polygon.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class can triangulate a convex or concave polygon, even one with holes.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
get_vertex
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.
int add_vertex(const LPoint2d &point)
Adds a new vertex to the vertex pool.