HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GU_Surfacer Class Reference

#include <GU_Surfacer.h>

Classes

class  Evaluator
 

Public Member Functions

 GU_Surfacer (GU_Detail &gdp, const UT_Vector3 &pos, const UT_Vector3 &size, int xdivs, int ydivs, int zdivs, bool do_normals, bool makepolysoup=false)
 
virtual ~GU_Surfacer ()
 
const UT_Vector3getStepSize () const
 Return the size of a cell. More...
 
void addCell (int x, int y, int z, const fpreal density[8], const UT_Vector3 gradient[8])
 
void done ()
 If using addCell directly, instead of polygonize, call done to finish. More...
 
void polygonize (Evaluator &eval)
 

Protected Member Functions

virtual void pointAdded (GEO_Detail *gdp, GA_Offset ptoff, int idx0, int idx1, fpreal u)
 called after adding a new point to the detail More...
 
virtual void primitiveAdded (GEO_Primitive *primitive)
 called after adding a complete polygon or polysoup to the detail More...
 

Detailed Description

Examples:
SOP/SOP_Surface.C.

Definition at line 22 of file GU_Surfacer.h.

Constructor & Destructor Documentation

GU_Surfacer::GU_Surfacer ( GU_Detail gdp,
const UT_Vector3 pos,
const UT_Vector3 size,
int  xdivs,
int  ydivs,
int  zdivs,
bool  do_normals,
bool  makepolysoup = false 
)
virtual GU_Surfacer::~GU_Surfacer ( )
virtual

Member Function Documentation

void GU_Surfacer::addCell ( int  x,
int  y,
int  z,
const fpreal  density[8],
const UT_Vector3  gradient[8] 
)

create polygons for cell given density values at the corners and optionally gradient values

void GU_Surfacer::done ( )

If using addCell directly, instead of polygonize, call done to finish.

const UT_Vector3& GU_Surfacer::getStepSize ( ) const
inline

Return the size of a cell.

Definition at line 34 of file GU_Surfacer.h.

virtual void GU_Surfacer::pointAdded ( GEO_Detail gdp,
GA_Offset  ptoff,
int  idx0,
int  idx1,
fpreal  u 
)
inlineprotectedvirtual

called after adding a new point to the detail

Definition at line 78 of file GU_Surfacer.h.

void GU_Surfacer::polygonize ( Evaluator eval)

Surface the entire range, using the Evaluator to calculate density and possibly gradient values.

virtual void GU_Surfacer::primitiveAdded ( GEO_Primitive primitive)
inlineprotectedvirtual

called after adding a complete polygon or polysoup to the detail

Definition at line 80 of file GU_Surfacer.h.


The documentation for this class was generated from the following file: