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

Mesher Class Reference

#include <mesher.h>

Inheritance diagram for Mesher:

MesherTempl< BuilderPrim > List of all members.

Public Types

typedef BuilderPrim Prim
typedef TYPENAME BuilderPrim::Vertex Vertex
typedef TYPENAME BuilderPrim::DAttrib MAttrib
typedef MesherEdge< BuilderPrimEdge
typedef MesherStrip< BuilderPrimStrip
typedef MesherFanMaker< BuilderPrimFanMaker

Public Member Functions

 Mesher (BuilderBucket *bucket)
int add_prim (const Prim &prim, MesherStripOrigin origin=MO_user)
void mesh ()
Prim getPrim ()
void finalize ()
void show (ostream &out)

Protected Types

typedef plist< StripStrips
typedef pset< Edge, less<
Edge > > 
Edges
typedef pset< Edge *, less<
Edge * > > 
EdgePtrs
typedef pmap< Vertex, EdgePtrs,
less< Vertex > > 
Verts
typedef pvector< BuilderCColors
typedef pmap< int, int, less<
int > > 
ColorSheetMap

Protected Member Functions

int count_vert_edges (const EdgePtrs &edges) const
plist< Strip > & choose_strip_list (const Strip &strip)
void build_sheets ()
void find_fans ()
void make_quads ()
void meshList (Strips &strips)

Protected Attributes

Strips _tris
Strips _quads
Strips _strips
Strips _dead
Strips _done
Verts _verts
Edges _edges
int _stripIndex
BuilderBucket_bucket
TYPENAME Strips::iterator _next_strip
Colors _colors
ColorSheetMap _color_sheets

Friends

class MesherStrip< PrimType >
class MesherFanMaker< PrimType >

Member Typedef Documentation

typedef pvector<BuilderC> MesherTempl< BuilderPrim >::Colors [protected, inherited]
 

Definition at line 66 of file mesherTempl.h.

typedef pmap<int, int, less<int> > MesherTempl< BuilderPrim >::ColorSheetMap [protected, inherited]
 

Definition at line 68 of file mesherTempl.h.

typedef MesherEdge<BuilderPrim> MesherTempl< BuilderPrim >::Edge [inherited]
 

Definition at line 45 of file mesherTempl.h.

typedef pset<Edge *, less<Edge *> > MesherTempl< BuilderPrim >::EdgePtrs [protected, inherited]
 

Definition at line 62 of file mesherTempl.h.

typedef pset<Edge, less<Edge> > MesherTempl< BuilderPrim >::Edges [protected, inherited]
 

Definition at line 61 of file mesherTempl.h.

typedef MesherFanMaker<BuilderPrim> MesherTempl< BuilderPrim >::FanMaker [inherited]
 

Definition at line 47 of file mesherTempl.h.

typedef TYPENAME BuilderPrim::DAttrib MesherTempl< BuilderPrim >::MAttrib [inherited]
 

Definition at line 44 of file mesherTempl.h.

typedef BuilderPrim MesherTempl< BuilderPrim >::Prim [inherited]
 

Definition at line 42 of file mesherTempl.h.

typedef MesherStrip<BuilderPrim> MesherTempl< BuilderPrim >::Strip [inherited]
 

Definition at line 46 of file mesherTempl.h.

typedef plist<Strip> MesherTempl< BuilderPrim >::Strips [protected, inherited]
 

Definition at line 60 of file mesherTempl.h.

typedef TYPENAME BuilderPrim::Vertex MesherTempl< BuilderPrim >::Vertex [inherited]
 

Definition at line 43 of file mesherTempl.h.

typedef pmap<Vertex, EdgePtrs, less<Vertex> > MesherTempl< BuilderPrim >::Verts [protected, inherited]
 

Definition at line 63 of file mesherTempl.h.


Constructor & Destructor Documentation

Mesher::Mesher BuilderBucket bucket  )  [inline]
 

Definition at line 49 of file mesher.h.

References EXPCL_PANDAEGG.


Member Function Documentation

int MesherTempl< BuilderPrim >::add_prim const Prim prim,
MesherStripOrigin  origin = MO_user
[inherited]
 

void MesherTempl< BuilderPrim >::build_sheets  )  [protected, inherited]
 

plist<Strip>& MesherTempl< BuilderPrim >::choose_strip_list const Strip strip  )  [protected, inherited]
 

int MesherTempl< BuilderPrim >::count_vert_edges const EdgePtrs edges  )  const [protected, inherited]
 

void MesherTempl< BuilderPrim >::finalize void   )  [inherited]
 

void MesherTempl< BuilderPrim >::find_fans  )  [protected, inherited]
 

Prim MesherTempl< BuilderPrim >::getPrim  )  [inherited]
 

void MesherTempl< BuilderPrim >::make_quads  )  [protected, inherited]
 

Attempts to join up all the single tris to its neighbor and reconstruct a pattern of quads, suitable for making into quadsheets or at least quadstrips.

void MesherTempl< BuilderPrim >::mesh  )  [inherited]
 

void MesherTempl< BuilderPrim >::meshList Strips strips  )  [protected, inherited]
 

void MesherTempl< BuilderPrim >::show ostream &  out  )  [inherited]
 


Friends And Related Function Documentation

friend class MesherFanMaker< BuilderPrim > [friend, inherited]
 

Definition at line 89 of file mesherTempl.h.

friend class MesherStrip< BuilderPrim > [friend, inherited]
 

Definition at line 88 of file mesherTempl.h.


Member Data Documentation

BuilderBucket* MesherTempl< BuilderPrim >::_bucket [protected, inherited]
 

Definition at line 83 of file mesherTempl.h.

ColorSheetMap MesherTempl< BuilderPrim >::_color_sheets [protected, inherited]
 

Definition at line 86 of file mesherTempl.h.

Colors MesherTempl< BuilderPrim >::_colors [protected, inherited]
 

Definition at line 85 of file mesherTempl.h.

Strips MesherTempl< BuilderPrim >::_dead [protected, inherited]
 

Definition at line 79 of file mesherTempl.h.

Strips MesherTempl< BuilderPrim >::_done [protected, inherited]
 

Definition at line 79 of file mesherTempl.h.

Edges MesherTempl< BuilderPrim >::_edges [protected, inherited]
 

Definition at line 81 of file mesherTempl.h.

TYPENAME Strips::iterator MesherTempl< BuilderPrim >::_next_strip [protected, inherited]
 

Definition at line 84 of file mesherTempl.h.

Strips MesherTempl< BuilderPrim >::_quads [protected, inherited]
 

Definition at line 78 of file mesherTempl.h.

int MesherTempl< BuilderPrim >::_stripIndex [protected, inherited]
 

Definition at line 82 of file mesherTempl.h.

Strips MesherTempl< BuilderPrim >::_strips [protected, inherited]
 

Definition at line 78 of file mesherTempl.h.

Strips MesherTempl< BuilderPrim >::_tris [protected, inherited]
 

Definition at line 78 of file mesherTempl.h.

Verts MesherTempl< BuilderPrim >::_verts [protected, inherited]
 

Definition at line 80 of file mesherTempl.h.


The documentation for this class was generated from the following file:
Generated on Fri May 2 00:52:10 2003 for Panda by doxygen1.3