Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

panda/src/builder/builderFuncs.h File Reference

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


Detailed Description

Definition in file builderFuncs.h.


Function Documentation

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.

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

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 at line 961 of file builderFuncs.I.


Generated on Fri May 2 00:45:03 2003 for Panda by doxygen1.3