Eulerian Smoke Simulation on the GPU
ImplicitSurface Class Reference

A class that samples an implicit surface on a Cartesian grid. More...

#include <ImplicitSurface.h>

List of all members.

Public Member Functions

 ImplicitSurface ()
 Constructor.
 ~ImplicitSurface ()
 Destructor.
void sampleSphere (int _resX, int _resY, int _resZ)
 Samples a sphere.
void sampleTorus (int _resX, int _resY, int _resZ)
 Samples a torus.
void sampleDoubleTorus (int _resX, int _resY, int _resZ)
 Samples a double torus.
void sampleCayley (int _resX, int _resY, int _resZ)
 Samples a cayley surface.
void sampleMandelbulb (int _resX, int _resY, int _resZ)
 Samples a Mandelbulb surface.
void sampleHeart (int _resX, int _resY, int _resZ)
 Samples a heart function.
void clearField (int _resX, int _resY, int _resZ)
 Clears the scalar field.
float * getScalarField () const
 Accessor for the scalar field array.
int getResX () const
 Accessor for the X dimension of the scalar field.
int getResY () const
 Accessor for the Y dimension of the scalar field.
int getResZ () const
 Accessor for the Z dimension of the scalar field.

Friends

class Obstacle

Detailed Description

A class that samples an implicit surface on a Cartesian grid.

Author:
Nikolaos Verigakis
Version:
1.0
Date:
14/07/11 Revision History : Initial Version 14/07/11

Member Function Documentation

void ImplicitSurface::clearField ( int  _resX,
int  _resY,
int  _resZ 
)

Clears the scalar field.

Parameters:
[in]_resXthe scalar field's resolution in X
[in]_resYthe scalar field's resolution in Y
[in]_resZthe scalar field's resolution in Z
void ImplicitSurface::sampleCayley ( int  _resX,
int  _resY,
int  _resZ 
)

Samples a cayley surface.

Parameters:
[in]_resXthe scalar field's resolution in X
[in]_resYthe scalar field's resolution in Y
[in]_resZthe scalar field's resolution in Z
void ImplicitSurface::sampleDoubleTorus ( int  _resX,
int  _resY,
int  _resZ 
)

Samples a double torus.

Parameters:
[in]_resXthe scalar field's resolution in X
[in]_resYthe scalar field's resolution in Y
[in]_resZthe scalar field's resolution in Z
void ImplicitSurface::sampleHeart ( int  _resX,
int  _resY,
int  _resZ 
)

Samples a heart function.

Parameters:
[in]_resXthe scalar field's resolution in X
[in]_resYthe scalar field's resolution in Y
[in]_resZthe scalar field's resolution in Z
void ImplicitSurface::sampleMandelbulb ( int  _resX,
int  _resY,
int  _resZ 
)

Samples a Mandelbulb surface.

Parameters:
[in]_resXthe scalar field's resolution in X
[in]_resYthe scalar field's resolution in Y
[in]_resZthe scalar field's resolution in Z
void ImplicitSurface::sampleSphere ( int  _resX,
int  _resY,
int  _resZ 
)

Samples a sphere.

Parameters:
[in]_resXthe scalar field's resolution in X
[in]_resYthe scalar field's resolution in Y
[in]_resZthe scalar field's resolution in Z
void ImplicitSurface::sampleTorus ( int  _resX,
int  _resY,
int  _resZ 
)

Samples a torus.

Parameters:
[in]_resXthe scalar field's resolution in X
[in]_resYthe scalar field's resolution in Y
[in]_resZthe scalar field's resolution in Z

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables