|
IsoEx
|
#include <IsoEx/Grids/Grid.hh>
Classes | |
| class | CubeIterator |
Public Types | |
| typedef VectorType | Vec3 |
| typedef VectorType::value_type | real |
| typedef unsigned int | CubeIdx |
| CubeIdx can be used to refer to cubes. | |
| typedef unsigned int | PointIdx |
| The grid points can be referred 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 Vec3 | 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 real | scalar_distance (PointIdx _pidx) const =0 |
| See IsoEx::Implicit::scalar_distance() | |
| virtual bool | directed_distance (const Vec3 &_p0, const Vec3 &_p1, Vec3 &_point, Vec3 &_normal, real &_distance) const =0 |
| See IsoEx::Implicit::directed_distance() | |
This is the abstract base class for all grid objects.
1.8.8