#include <grid_util.h>
Public Types | |
| typedef Box3< ScalarType > | Box3x |
| typedef Point3< ScalarType > | CoordType |
| typedef BasicGrid< SCALARTYPE > | GridType |
| typedef SCALARTYPE | ScalarType |
Public Member Functions | |
| void | BoxToIBox (const Box3x &b, Box3i &ib) const |
| void | ComputeDimAndVoxel () |
| Dimensions of a single cell. | |
| Point3i | GridP (const Point3< ScalarType > &p) const |
| void | IBoxToBox (const Box3i &ib, Box3x &b) const |
| Dato un box in voxel ritorna gli estremi del box reale. | |
| void | IPfToPf (const CoordType &pi, CoordType &p) const |
| void | IPiToBox (const Point3i &pi, Box3x &b) const |
| void | IPiToBoxCenter (const Point3i &pi, CoordType &c) const |
| void | IPiToPf (const Point3i &pi, CoordType &p) const |
| void | PToIP (const CoordType &p, Point3i &pi) const |
Public Attributes | |
| Box3x | bbox |
| CoordType | dim |
| Point3i | siz |
| Spatial Dimention (edge legth) of the bounding box. | |
| CoordType | voxel |
| Number of cells forming the grid. | |
Basic Class abstracting a gridded structure in a 3d space; Usueful for having coherent float to integer conversion in a unique place: Some Notes:
OBJTYPE: Type of the indexed objects. SCALARTYPE: Scalars type for structure's internal data (may differ from object's scalar type).
Definition at line 95 of file grid_util.h.
| typedef Box3<ScalarType> vcg::BasicGrid< SCALARTYPE >::Box3x |
Reimplemented in vcg::GridStaticPtr< OBJTYPE, FLT >, vcg::SpatialHashTable< ObjType, FLT >, vcg::DynamicSpatialHashTable< ContainerType, FLT >, vcg::GridStaticPtr< typename MESH::VertexType, typename MESH::ScalarType >, vcg::GridStaticPtr< FaceType, ScalarType >, vcg::GridStaticPtr< FaceType, typename MetroMesh::ScalarType >, vcg::GridStaticPtr< typename MeshType::VertexType, ScalarType >, vcg::GridStaticPtr< typename Old_Mesh::FaceType >, vcg::SpatialHashTable< FaceType, typename MetroMesh::ScalarType >, and vcg::SpatialHashTable< ContainerType, FLT >.
Definition at line 100 of file grid_util.h.
| typedef Point3<ScalarType> vcg::BasicGrid< SCALARTYPE >::CoordType |
Reimplemented in vcg::GridStaticPtr< OBJTYPE, FLT >, vcg::SpatialHashTable< ObjType, FLT >, vcg::DynamicSpatialHashTable< ContainerType, FLT >, vcg::GridStaticPtr< typename MESH::VertexType, typename MESH::ScalarType >, vcg::GridStaticPtr< FaceType, ScalarType >, vcg::GridStaticPtr< FaceType, typename MetroMesh::ScalarType >, vcg::GridStaticPtr< typename MeshType::VertexType, ScalarType >, vcg::GridStaticPtr< typename Old_Mesh::FaceType >, vcg::SpatialHashTable< FaceType, typename MetroMesh::ScalarType >, and vcg::SpatialHashTable< ContainerType, FLT >.
Definition at line 101 of file grid_util.h.
| typedef BasicGrid<SCALARTYPE> vcg::BasicGrid< SCALARTYPE >::GridType |
Reimplemented in vcg::tri::Resampler< OLD_MESH_TYPE, NEW_MESH_TYPE, FLT, DISTFUNCTOR >::Walker.
Definition at line 102 of file grid_util.h.
| typedef SCALARTYPE vcg::BasicGrid< SCALARTYPE >::ScalarType |
Reimplemented in vcg::GridStaticPtr< OBJTYPE, FLT >, vcg::SpatialHashTable< ObjType, FLT >, vcg::GridStaticPtr< typename MESH::VertexType, typename MESH::ScalarType >, vcg::GridStaticPtr< FaceType, ScalarType >, vcg::GridStaticPtr< FaceType, typename MetroMesh::ScalarType >, vcg::GridStaticPtr< typename MeshType::VertexType, ScalarType >, vcg::GridStaticPtr< typename Old_Mesh::FaceType >, vcg::SpatialHashTable< FaceType, typename MetroMesh::ScalarType >, and vcg::SpatialHashTable< ContainerType, FLT >.
Definition at line 99 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::BoxToIBox | ( | const Box3x & | b, | |
| Box3i & | ib | |||
| ) | const [inline] |
Definition at line 195 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::ComputeDimAndVoxel | ( | ) | [inline] |
Dimensions of a single cell.
Definition at line 114 of file grid_util.h.
| Point3i vcg::BasicGrid< SCALARTYPE >::GridP | ( | const Point3< ScalarType > & | p | ) | const [inline] |
Definition at line 125 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IBoxToBox | ( | const Box3i & | ib, | |
| Box3x & | b | |||
| ) | const [inline] |
Dato un box in voxel ritorna gli estremi del box reale.
Definition at line 207 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPfToPf | ( | const CoordType & | pi, | |
| CoordType & | p | |||
| ) | const [inline] |
Definition at line 183 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPiToBox | ( | const Point3i & | pi, | |
| Box3x & | b | |||
| ) | const [inline] |
Definition at line 160 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPiToBoxCenter | ( | const Point3i & | pi, | |
| CoordType & | c | |||
| ) | const [inline] |
Definition at line 174 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPiToPf | ( | const Point3i & | pi, | |
| CoordType & | p | |||
| ) | const [inline] |
Definition at line 148 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::PToIP | ( | const CoordType & | p, | |
| Point3i & | pi | |||
| ) | const [inline] |
Definition at line 136 of file grid_util.h.
| Box3x vcg::BasicGrid< SCALARTYPE >::bbox |
Definition at line 104 of file grid_util.h.
| CoordType vcg::BasicGrid< SCALARTYPE >::dim |
Definition at line 106 of file grid_util.h.
| Point3i vcg::BasicGrid< SCALARTYPE >::siz |
Spatial Dimention (edge legth) of the bounding box.
Definition at line 107 of file grid_util.h.
| CoordType vcg::BasicGrid< SCALARTYPE >::voxel |
Number of cells forming the grid.
Definition at line 108 of file grid_util.h.