Panda3D

Loading...
Searching...
No Matches
Functions
eggCompositePrimitive.cxx File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

`#include "eggCompositePrimitive.h"`
`#include "eggGroupNode.h"`
`#include "eggVertexPool.h"`

Go to the source code of this file.

## Functions
| PT (EggCompositePrimitive) EggCompositePrimitive
| Subdivides the composite primitive into triangles and adds those triangles to the parent group node in place of the original primitive.

## 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
  2005-03-13

Definition in file eggCompositePrimitive.cxx.

## Function Documentation

## ◆ PT()

PT | ( | EggCompositePrimitive |  | ) |

Subdivides the composite primitive into triangles and adds those triangles to the parent group node in place of the original primitive.

Returns a pointer to the original primitive, 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 100 of file eggCompositePrimitive.cxx.