#include <IsoEx/Grids/RegularGrid.hh>
Inheritance diagram for IsoEx::RegularGrid:
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. |
|
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.
|