Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members

IsoEx::RegularGrid Class Reference
[3D Grids]

This class implements a regular 3D grid. More...

#include <IsoEx/Grids/RegularGrid.hh>

Inheritance diagram for IsoEx::RegularGrid:

IsoEx::Grid IsoEx::ImplicitGrid IsoEx::ScalarGridT< Scalar > IsoEx::LevelSetSurfaceT< Scalar > List of all members.

Public Member Functions

 RegularGrid (const OpenMesh::Vec3f &_origin, const OpenMesh::Vec3f &_x_axis, const OpenMesh::Vec3f &_y_axis, const OpenMesh::Vec3f &_z_axis, unsigned int _x_res, unsigned int _y_res, unsigned int _z_res)
 Constructor: given the implicit to be sampled, the grids extend in 3-space (origin and 3 axes) as well as the resolution (number of steps) of the axes.

unsigned int n_cubes () const
 Return number of cubes.

unsigned int n_points () const
 Return number of points.

PointIdx point_idx (CubeIdx _idx, unsigned char _corner) const
 Return the PointIdx of the _corners'th corner of the cube _idx.

OpenMesh::Vec3f point (PointIdx _idx) const
 Return the 3D point refered to by _idx.


Detailed Description

This class implements a regular 3D grid.


Constructor & Destructor Documentation

IsoEx::RegularGrid::RegularGrid const OpenMesh::Vec3f &  _origin,
const OpenMesh::Vec3f &  _x_axis,
const OpenMesh::Vec3f &  _y_axis,
const OpenMesh::Vec3f &  _z_axis,
unsigned int  _x_res,
unsigned int  _y_res,
unsigned int  _z_res
[inline]
 

Constructor: given the implicit to be sampled, the grids extend in 3-space (origin and 3 axes) as well as the resolution (number of steps) of the axes.

The grid will contain _x_res*_y_res*_z_res points and (_x_res-1)*(_y_res-1)*(_z_res-1) cubes.

Note:
The resolution of each axis has to be less than 1024. This is to make sure that a cube or point can be represented by one integer.


The documentation for this class was generated from the following files:
Generated on Mon Jul 5 18:07:08 2004 for IsoEx by doxygen 1.3.6-20040222