#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. | |
| template<class OtherScalarType > | |
| void | IPfToPf (const Point3< OtherScalarType > &pi, Point3< OtherScalarType > &p) const |
| void | IPiToBox (const Point3i &pi, Box3x &b) const |
| void | IPiToBoxCenter (const Point3i &pi, CoordType &c) const |
| template<class OtherScalarType > | |
| void | IPiToPf (const Point3i &pi, Point3< OtherScalarType > &p) const |
| Matrix44< ScalarType > | IPtoPfMatrix () 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 54 of file grid_util.h.
| typedef Box3<ScalarType> vcg::BasicGrid< SCALARTYPE >::Box3x |
Reimplemented in vcg::DynamicSpatialHashTable< ContainerType, FLT >, vcg::GridStaticPtr< OBJTYPE, FLT >, vcg::SpatialHashTable< ObjType, FLT >, vcg::GridStaticPtr< typename MESH::VertexType, typename MESH::ScalarType >, vcg::GridStaticPtr< typename CMesh::VertexType, typename CMesh::ScalarType >, vcg::GridStaticPtr< FaceType, typename MetroMesh::ScalarType >, vcg::GridStaticPtr< FaceType, ScalarType >, vcg::GridStaticPtr< typename MeshType::VertexType, ScalarType >, vcg::GridStaticPtr< VertexType, ScalarType >, vcg::GridStaticPtr< typename MeshType::FaceType, ScalarType >, vcg::GridStaticPtr< OldFaceType, OldScalarType >, vcg::SpatialHashTable< FaceType, typename MetroMesh::ScalarType >, vcg::SpatialHashTable< ContainerType, FLT >, and vcg::SimpleVolume< VOX_TYPE >.
Definition at line 59 of file grid_util.h.
| typedef Point3<ScalarType> vcg::BasicGrid< SCALARTYPE >::CoordType |
Reimplemented in vcg::DynamicSpatialHashTable< ContainerType, FLT >, vcg::GridStaticPtr< OBJTYPE, FLT >, vcg::SpatialHashTable< ObjType, FLT >, vcg::GridStaticPtr< typename MESH::VertexType, typename MESH::ScalarType >, vcg::GridStaticPtr< typename CMesh::VertexType, typename CMesh::ScalarType >, vcg::GridStaticPtr< FaceType, typename MetroMesh::ScalarType >, vcg::GridStaticPtr< FaceType, ScalarType >, vcg::GridStaticPtr< typename MeshType::VertexType, ScalarType >, vcg::GridStaticPtr< VertexType, ScalarType >, vcg::GridStaticPtr< typename MeshType::FaceType, ScalarType >, vcg::GridStaticPtr< OldFaceType, OldScalarType >, vcg::SpatialHashTable< FaceType, typename MetroMesh::ScalarType >, and vcg::SpatialHashTable< ContainerType, FLT >.
Definition at line 60 of file grid_util.h.
| typedef BasicGrid<SCALARTYPE> vcg::BasicGrid< SCALARTYPE >::GridType |
Reimplemented in vcg::tri::Resampler< OldMeshType, NewMeshType, DISTFUNCTOR >::Walker.
Definition at line 61 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< typename CMesh::VertexType, typename CMesh::ScalarType >, vcg::GridStaticPtr< FaceType, typename MetroMesh::ScalarType >, vcg::GridStaticPtr< FaceType, ScalarType >, vcg::GridStaticPtr< typename MeshType::VertexType, ScalarType >, vcg::GridStaticPtr< VertexType, ScalarType >, vcg::GridStaticPtr< typename MeshType::FaceType, ScalarType >, vcg::GridStaticPtr< OldFaceType, OldScalarType >, vcg::SpatialHashTable< FaceType, typename MetroMesh::ScalarType >, vcg::SpatialHashTable< ContainerType, FLT >, and vcg::SimpleVolume< VOX_TYPE >.
Definition at line 58 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::BoxToIBox | ( | const Box3x & | b, |
| Box3i & | ib | ||
| ) | const [inline] |
Definition at line 162 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::ComputeDimAndVoxel | ( | ) | [inline] |
Dimensions of a single cell.
Definition at line 73 of file grid_util.h.
| Point3i vcg::BasicGrid< SCALARTYPE >::GridP | ( | const Point3< ScalarType > & | p | ) | const [inline] |
Definition at line 84 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 174 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPfToPf | ( | const Point3< OtherScalarType > & | pi, |
| Point3< OtherScalarType > & | p | ||
| ) | const [inline] |
Definition at line 151 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPiToBox | ( | const Point3i & | pi, |
| Box3x & | b | ||
| ) | const [inline] |
Definition at line 127 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPiToBoxCenter | ( | const Point3i & | pi, |
| CoordType & | c | ||
| ) | const [inline] |
Definition at line 141 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::IPiToPf | ( | const Point3i & | pi, |
| Point3< OtherScalarType > & | p | ||
| ) | const [inline] |
Definition at line 108 of file grid_util.h.
| Matrix44<ScalarType> vcg::BasicGrid< SCALARTYPE >::IPtoPfMatrix | ( | ) | const [inline] |
Definition at line 117 of file grid_util.h.
| void vcg::BasicGrid< SCALARTYPE >::PToIP | ( | const CoordType & | p, |
| Point3i & | pi | ||
| ) | const [inline] |
Definition at line 95 of file grid_util.h.
| Box3x vcg::BasicGrid< SCALARTYPE >::bbox |
Definition at line 63 of file grid_util.h.
| CoordType vcg::BasicGrid< SCALARTYPE >::dim |
Definition at line 65 of file grid_util.h.
| Point3i vcg::BasicGrid< SCALARTYPE >::siz |
Spatial Dimention (edge legth) of the bounding box.
Definition at line 66 of file grid_util.h.
| CoordType vcg::BasicGrid< SCALARTYPE >::voxel |
Number of cells forming the grid.
Definition at line 67 of file grid_util.h.