SourceForge.net Logo

camvox Namespace Reference


Classes

class  CSGCylinder
class  CSGDifference
class  CSGIntersection
class  CSGInvert
class  CSGObject
class  CSGOperation
class  CSGPlane
class  CSGPrimative
class  CSGSphere
class  CSGUnion
class  bad_index
struct  free_region_s
 A region of free items. More...
class  FreeList
 This class manages free items. More...
class  TInterval
class  TMatrix
 An affine transformation matrix. More...
class  TVector
 A homogenious vector and point class. More...
class  VoxCoord
 VoxCoord is an object that describes the position in oct-tree voxel space. More...
class  Voxel
class  VoxOperation
struct  vox_node_t
class  VoxTree
 An VoxTree instance holds a complete oct-tree of voxels. More...

Typedefs

typedef struct free_region_s free_region_t
typedef TInterval< double > Interval
typedef TMatrix< double > Matrix
typedef TVector< double > Vector
typedef TVector< IntervalIntervalVector

Enumerations

enum  vox_op_t {
  VOX_OP_OR = 0, VOX_OP_AND, VOX_OP_XOR, VOX_OP_TST,
  VOX_OP_NOP
}
 Voxel operations. More...

Functions

template<class T>
static T gmin (T a, T b)
static double gmin (double a, double b)
template<class T>
static T gmax (T a, T b)
static double gmax (double a, double b)
template<class T>
static T gabs (T a)
static double gabd (double a)
static double gcos (double a)
static double gsin (double a)
static double gsquare (double a)
static double gsqrt (double a)
static Interval gsquare (Interval a)
template<class T, int H, int W>
bool gauss_jordan (T m[H][W])
 Gauss-Jordan elimination.

Variables

CSGObjectWHITE_BOX = new CSGObject()
CSGObjectBLACK_BOX = new CSGObject()
camvox::bad_index bad_index

Typedef Documentation

typedef TInterval<double> camvox::Interval

typedef TMatrix<double> camvox::Matrix

typedef TVector<double> camvox::Vector


Enumeration Type Documentation

Voxel operations.

These are the operations that can be made on the voxel volume.

Enumerator:
VOX_OP_OR  binary OR layer masks when inside CSG object.
VOX_OP_AND  binary AND layer masks when inside CSG object.
VOX_OP_XOR  binary XOR layer masks when inside CSG object.
VOX_OP_TST  return layers that are inside CSG object.
VOX_OP_NOP  Don't do anything.


Function Documentation

static double camvox::gabd ( double  a  )  [inline, static]

template<class T>
static T camvox::gabs ( a  )  [inline, static]

template<class T, int H, int W>
bool camvox::gauss_jordan ( m[H][W]  )  [inline]

Gauss-Jordan elimination.

Basically converts the the augmented matrix, until the first half is an identity matrix.

This is useful to invert a matrix by augmenting it with a identity matrix, after this function the right side of the augmented matrix contains the inverted original matrix.

Parameters:
m[H][W] The augmented matrix. It will return the augmented matrix with the leftside being the identity matrix.
Returns:
true if successful.

static double camvox::gcos ( double  a  )  [inline, static]

static double camvox::gmax ( double  a,
double  b 
) [inline, static]

template<class T>
static T camvox::gmax ( a,
b 
) [inline, static]

static double camvox::gmin ( double  a,
double  b 
) [inline, static]

template<class T>
static T camvox::gmin ( a,
b 
) [inline, static]

static double camvox::gsin ( double  a  )  [inline, static]

static double camvox::gsqrt ( double  a  )  [inline, static]

static Interval camvox::gsquare ( Interval  a  )  [inline, static]

static double camvox::gsquare ( double  a  )  [inline, static]


Variable Documentation