#include <IsoEx/Grids/Grid.hh>
Inheritance diagram for IsoEx::Grid:
Public Types | |
typedef unsigned int | CubeIdx |
CubeIdx can be used to refer to cubes. | |
typedef unsigned int | PointIdx |
The grid points can be refered to by PointIdx. | |
Public Member Functions | |
Grid () | |
Default constructor. | |
virtual | ~Grid () |
Destructor. | |
Iterate over all cubes | |
CubeIterator | begin () const |
Returns begin iterator for the grid's cubes. | |
CubeIterator | end () const |
Returns end iterator for the grid's cubes. | |
Abstract interface of grids | |
virtual unsigned int | n_cubes () const=0 |
Number of cubes in the grid. | |
virtual unsigned int | n_points () const=0 |
Number of cubes in the grid. | |
virtual PointIdx | point_idx (CubeIdx _idx, unsigned char _corner) const=0 |
Return the PointIdx of the _corners'th corner of the cube _idx. | |
virtual OpenMesh::Vec3f | point (PointIdx _idx) const=0 |
Return the 3D point refered to by _idx. | |
virtual bool | is_inside (PointIdx _pidx) const=0 |
See IsoEx::Implicit::is_inside(). | |
virtual float | scalar_distance (PointIdx _pidx) const=0 |
See IsoEx::Implicit::scalar_distance(). | |
virtual bool | directed_distance (const OpenMesh::Vec3f &_p0, const OpenMesh::Vec3f &_p1, OpenMesh::Vec3f &_point, OpenMesh::Vec3f &_normal, float &_distance) const=0 |
See IsoEx::Implicit::directed_distance(). |