Panda3D
Macros | Functions
eggPolygon.cxx File Reference

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...
 

Detailed Description

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."

Author
drose
Date
1999-01-16

Definition in file eggPolygon.cxx.

Function Documentation

◆ PT()

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.