PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...
#include "eggPolygon.h"
#include "eggGroupNode.h"
#include "plane.h"
#include "indent.h"
#include <algorithm>
Go to the source code of this file.
Macros | |
#define | VX(p, c) p->coord[c] |
Functions | |
PT (EggPolygon) EggPolygon | |
Subdivides the polygon into triangles and adds those triangles to the parent group node in place of the original polygon. More... | |
PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.
All rights reserved.
All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."
Definition in file eggPolygon.cxx.
PT | ( | EggPolygon | ) |
Subdivides the polygon into triangles and adds those triangles to the parent group node in place of the original polygon.
Returns a pointer to the original polygon, which is likely about to be destructed.
If convex_also is true, both concave and convex polygons will be subdivided into triangles; otherwise, only concave polygons will be subdivided, and convex polygons will be copied unchanged into the container.
Definition at line 146 of file eggPolygon.cxx.