Logo Search packages:      
Sourcecode: blender version File versions  Download package

IsoSurface Class Reference

#include <isosurface.h>

Inheritance diagram for IsoSurface:

List of all members.


Detailed Description

class to triangulate a scalar field, e.g. for

Definition at line 38 of file isosurface.h.


Public Member Functions

void applyTransformation (double t, vector< ntlVec3Gfx > *verts, vector< ntlVec3Gfx > *norms, int vstart, int vend, int forceTrafo)
virtual void calcTriangleDivs (vector< ntlVec3Gfx > &verts, vector< ntlTriangle > &tris, gfxReal fsTri)
ntlVec3Gfx calculateMaxVel (double t1, double t2)
bool checkIsAnimated ()
void computeNormals ()
virtual void drawDebugDisplay ()
virtual void drawInteractiveDisplay ()
AttributeListgetAttributeList ()
virtual ntlVec3Gfx * getBBEnd ()
virtual ntlVec3Gfx * getBBStart ()
 for easy GUI detection get start of axis aligned bounding box, return NULL of no BB
int getCastShadows () const
float * getData (int ii, int jj, int kk)
float * getData ()
 access data array
ntlVec3Gfx getEnd ()
float getGeoActive (double t)
float getGeoImpactFactor (double t)
int getGeoInitId () const
bool getGeoInitIntersect () const
int getGeoInitType () const
float getGeoPartSlipValue () const
ntlVec3Gfx getInitialVelocity (double t)
bool getIsAnimated () const
unsigned int * getIsoIndexArray ()
unsigned int getIsoIndexCount ()
char * getIsoVertexArray ()
unsigned int getIsoVertexCount ()
 OpenGL viz "interface".
bool getLocalCoordInivel () const
ntlMaterialgetMaterial (void)
string getMaterialName (void)
virtual bool getMeshAnimated ()
void getMovingPoints (vector< ntlVec3Gfx > &ret, vector< ntlVec3Gfx > *norms=NULL)
string getName (void)
int getObjectId () const
int getReceiveShadows () const
float getSmoothNormals ()
float getSmoothSurface ()
ntlVec3Gfx getStart ()
int getSubdivs ()
AttributeListgetSwsAttributeList ()
ntlVec3Gfx getTranslation (double t)
virtual void getTriangles (double t, vector< ntlTriangle > *triangles, vector< ntlVec3Gfx > *vertices, vector< ntlVec3Gfx > *normals, int objectId)
virtual int getTypeId ()
 Return type id.
int getVisible () const
int getVolumeInit () const
void initChannels (int nTrans, float *trans, int nRot, float *rot, int nScale, float *scale, int nAct, float *act, int nIvel, float *ivel)
virtual void initialize (ntlRenderGlobals *glob)
virtual void initializeIsosurface (int setx, int sety, int setz, ntlVec3Gfx extent)
void initMovingPoints (double time, gfxReal featureSize)
void initMovingPointsAnim (double srctime, vector< ntlVec3Gfx > &srcpoints, double dsttime, vector< ntlVec3Gfx > &dstpoints, vector< ntlVec3Gfx > *dstnormals, gfxReal featureSize, ntlVec3Gfx geostart, ntlVec3Gfx geoend)
 IsoSurface (double iso)
float * lbmGetData (int ii, int jj, int kk)
virtual void notifyOfDump (int dumptype, int frameNr, char *frameNrStr, string outfilename, double simtime)
void resetAll (gfxReal val)
void sceneAddTriangle (ntlVec3Gfx p1, ntlVec3Gfx p2, ntlVec3Gfx p3, ntlVec3Gfx pn1, ntlVec3Gfx pn2, ntlVec3Gfx pn3, ntlVec3Gfx trin, bool smooth, vector< ntlTriangle > *triangles, vector< ntlVec3Gfx > *vertices, vector< ntlVec3Gfx > *vertNormals)
void sceneAddTriangleNoVert (int *trips, ntlVec3Gfx trin, bool smooth, vector< ntlTriangle > *triangles)
void searchMaterial (vector< ntlMaterial * > *mat)
void setAttributeList (AttributeList *set)
void setCastShadows (int set)
void setCutArray (int *set)
 set cut off border
void setCutoff (int set)
 set cut off border
void setEnd (ntlVec3Gfx set)
 set geometry end (for renderer)
void setGeoImpactFactor (float set)
void setGeoInitId (int set)
void setGeoInitIntersect (bool set)
void setGeoInitType (int set)
void setGeoPartSlipValue (float set)
void setInitialVelocity (ntlVec3Gfx set)
void setIsolevel (double set)
 set iso level value for surface reconstruction
void setLocalCoordInivel (bool set)
void setMaterial (ntlMaterial *p)
void setMaterialName (string set)
virtual void setMouseClick ()
virtual void setMousePos (int, int, ntlVec3Gfx, ntlVec3Gfx)
void setName (string set)
void setObjectId (int set)
void setParticles (ParticleTracer *pnt, float psize)
void setReceiveShadows (int set)
void setSmoothNormals (float set)
void setSmoothRad (float radi1, float radi2, ntlVec3Gfx mscc)
void setSmoothSurface (float set)
 set loop subdiv num
void setStart (ntlVec3Gfx set)
 set geometry start (for renderer)
void setSubdivs (int s)
void setSwsAttributeList (AttributeList *set)
void setUseFulledgeArrays (bool set)
void setVisible (int set)
void setVolumeInit (int set)
void smoothNormals (float val)
void smoothSurface (float val, bool smoothNorm)
void triangulate (void)
virtual ~IsoSurface ()

Protected Member Functions

bool diffuseVertexField (ntlVec3Gfx *field, int pointerScale, int v, float invsigma2, ntlVec3Gfx &flt)
 smoothing helper function
ntlVec3Gfx getNormal (int i, int j, int k)
 compute normal

Protected Attributes

vector< ntlVec3Gfx > cornerareas
vector< int > flags
 trimesh vars
vector< int > mAcrossEdge
 grid data
vector< vector< int > > mAdjacentFaces
vector< ntlVec3Gfx > mCachedMovNormals
vector< ntlVec3Gfx > mCachedMovPoints
int mCastShadows
AnimChannel< float > mcGeoActive
AnimChannel< float > mcGeoImpactFactor
AnimChannel< ntlVec3Gfx > mcInitialVelocity
AnimChannel< ntlVec3Gfx > mcRot
AnimChannel< ntlVec3Gfx > mcScale
AnimChannel< ntlVec3Gfx > mcTrans
int * mCutArray
 cutoff heigh values
int mCutoff
 cutoff border area
vector< int > mDboundary
ntlVec3Gfx mDomainExtent
 normalized domain extent from parametrizer/visualizer
int mEdgeArSize
ntlVec3Gfx mEnd
int mFlagCnt
int mGeoInitId
bool mGeoInitIntersect
int mGeoInitType
float mGeoPartSlipValue
bool mHaveCachedMov
vector< unsigned int > mIndices
 vector for all the triangles (stored as 3 indices)
bool mInitDone
 initialized?
ntlVec3Gfx mInitialPos
ntlVec3Gfx mInitialVelocity
bool mIsAnimated
bool mIsInitialized
double mIsoValue
 Level of the iso surface.
bool mLocalCoordInivel
string mMaterialName
int mMaxMovPnt
vector< ntlVec3Gfx > mMovNormals
float mMovPntsInited
vector< ntlVec3Gfx > mMovPoints
string mName
int mObjectId
float mPartSize
 particle size
AttributeListmpAttrs
float * mpData
 data pointer
int * mpEdgeVerticesX
 Store indices of calculated points along the cubie edges.
int * mpEdgeVerticesY
int * mpEdgeVerticesZ
ParticleTracermpIsoParts
 particle pointer
ntlMaterialmpMaterial
vector< IsoLevelVertex > mPoints
 Store all the triangles vertices.
AttributeListmpSwsAttrs
int mReceiveShadows
ntlVec3Gfx mSCcenter
float mSCrad1
float mSCrad2
int mSizex
 size
int mSizey
int mSizez
float mSmoothNormals
 amount of normal smoothing
float mSmoothSurface
 amount of surface smoothing
ntlVec3Gfx mStart
 start and end vectors for the triangulation region to create triangles in
int mSubdivs
 no of subdivisions
vector< int > mTriangleDivs1
vector< int > mTriangleDivs2
vector< int > mTriangleDivs3
bool mUseFullEdgeArrays
 use full arrays? (not for farfield)
int mVisible
int mVolumeInit
vector< vector< int > > neighbors
vector< float > pointareas

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

Generated by  Doxygen 1.6.0   Back to index