#include "pandabase.h"
#include "pvector.h"
#include "builderFuncs.I"
Go to the source code of this file.
Functions | |
template<class PrimType, class OutputIterator> bool | expand (const PrimType &prim, BuilderBucket &bucket, OutputIterator result) |
Receives a single primitive as a BuilderPrim or BuilderPrimI object, as input by the user. | |
template<class InputIterator> int | mesh_and_build (InputIterator first, InputIterator last, BuilderBucket &bucket, GeomNode *geom_node) |
Accepts a list of BuilderPrim or BuilderPrimI objects, defined by the iterators first and list, runs them through the mesher if specified by the bucket, and builds them into the indicated GeomNode. | |
template<class InputIterator, class OutputIterator, class Predicate> OutputIterator | split (InputIterator first, InputIterator last, OutputIterator true_result, OutputIterator false_result, Predicate pred) |
Splits an STL list into two other lists, according to the return value from pred. |
Definition in file builderFuncs.h.
|
Receives a single primitive as a BuilderPrim or BuilderPrimI object, as input by the user. Does some initial processing on the primitive to verify internal consistency (for instance, that a quad has four vertices), and returns a new BuilderPrim or series of BuilderPrim objects, suitable for building with. More than one primitive might be returned because higher-order polygons may be broken up into triangles, and linestrips and points are broken into their component pieces. The output primitives are written into the STL container defined by result. Definition at line 481 of file builderFuncs.I. References TYPENAME. Referenced by BuilderBucketNode::add_prim(). |
|
Accepts a list of BuilderPrim or BuilderPrimI objects, defined by the iterators first and list, runs them through the mesher if specified by the bucket, and builds them into the indicated GeomNode.
|
|
Splits an STL list into two other lists, according to the return value from pred.
Definition at line 961 of file builderFuncs.I. |