Go to the documentation of this file.
14 #ifndef TRIANGULATOR3_H
15 #define TRIANGULATOR3_H
34 INLINE
int add_vertex(
double x,
double y,
double z);
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);
This is an extension of Triangulator to handle polygons with three- dimensional points.
void clear()
Removes all vertices and polygon specifications from the Triangulator, and prepares it to start over.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
This class can triangulate a convex or concave polygon, even one with holes.
get_vertex
Returns the nth vertex.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
int add_vertex(const LPoint2d &point)
Adds a new vertex to the vertex pool.
get_num_vertices
Returns the number of vertices in the pool.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
void triangulate()
Does the work of triangulating the specified polygon.