Public Member Functions | |
MeshInspectGrid (const MeshCore::MeshKernel &mesh, float fGridLen, const Base::Matrix4D &m) | |
void | Validate (void) |
void | Validate (const MeshCore::MeshKernel &) |
Validates the grid structure and rebuilds it if needed. | |
bool | Verify () const |
Verifies the grid structure and returns false if inconsistencies are found. | |
Protected Member Functions | |
void | AddFacet (const MeshCore::MeshGeomFacet &rclFacet, unsigned long ulFacetIndex) |
void | CalculateGridLength (int iCtGridPerAxis) |
Calculates the grid length dependent on the number of grids per axis. | |
void | CalculateGridLength (unsigned long ulCtGrid, unsigned long ulMaxGrids) |
Calculates the grid length dependent on maximum number of grids. | |
unsigned long | HasElements (void) const |
Returns the number of stored elements. | |
void | InitGrid (void) |
Initializes the size of the internal structure. | |
void | Pos (const Base::Vector3f &rclPoint, unsigned long &rulX, unsigned long &rulY, unsigned long &rulZ) const |
void | RebuildGrid (void) |
Rebuilds the grid structure. |
Definition at line 126 of file InspectionFeature.cpp.
Inspection::MeshInspectGrid::MeshInspectGrid | ( | const MeshCore::MeshKernel & | mesh, | |
float | fGridLen, | |||
const Base::Matrix4D & | m | |||
) | [inline] |
Definition at line 129 of file InspectionFeature.cpp.
References Base::BoundBox3< _Precision >::LengthX(), Base::BoundBox3< _Precision >::LengthY(), and Base::BoundBox3< _Precision >::LengthZ().
void Inspection::MeshInspectGrid::AddFacet | ( | const MeshCore::MeshGeomFacet & | rclFacet, | |
unsigned long | ulFacetIndex | |||
) | [inline, protected] |
Definition at line 179 of file InspectionFeature.cpp.
References MeshCore::MeshGeomFacet::_aclPoints, insert(), MeshCore::MeshGeomFacet::IntersectBoundingBox(), Base::BoundBox3< _Precision >::MaxX, Base::BoundBox3< _Precision >::MaxY, Base::BoundBox3< _Precision >::MaxZ, Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, and Base::BoundBox3< _Precision >::MinZ.
void Inspection::MeshInspectGrid::CalculateGridLength | ( | int | iCtGridPerAxis | ) | [inline, protected, virtual] |
Calculates the grid length dependent on the number of grids per axis.
Reimplemented from MeshCore::MeshGrid.
Definition at line 160 of file InspectionFeature.cpp.
void Inspection::MeshInspectGrid::CalculateGridLength | ( | unsigned long | ulCtGrid, | |
unsigned long | ulMaxGrids | |||
) | [inline, protected, virtual] |
Calculates the grid length dependent on maximum number of grids.
Reimplemented from MeshCore::MeshGrid.
Definition at line 155 of file InspectionFeature.cpp.
unsigned long Inspection::MeshInspectGrid::HasElements | ( | void | ) | const [inline, protected, virtual] |
Returns the number of stored elements.
Must be implemented in sub-classes.
Implements MeshCore::MeshGrid.
Definition at line 165 of file InspectionFeature.cpp.
void Inspection::MeshInspectGrid::InitGrid | ( | void | ) | [inline, protected, virtual] |
Initializes the size of the internal structure.
Reimplemented from MeshCore::MeshGrid.
Definition at line 207 of file InspectionFeature.cpp.
References Base::BoundBox3< _Precision >::LengthX(), Base::BoundBox3< _Precision >::LengthY(), Base::BoundBox3< _Precision >::LengthZ(), Base::BoundBox3< _Precision >::MinX, Base::BoundBox3< _Precision >::MinY, and Base::BoundBox3< _Precision >::MinZ.
void Inspection::MeshInspectGrid::Pos | ( | const Base::Vector3f & | rclPoint, | |
unsigned long & | rulX, | |||
unsigned long & | rulY, | |||
unsigned long & | rulZ | |||
) | const [inline, protected] |
Definition at line 170 of file InspectionFeature.cpp.
References Py::long, Base::Vector3< _Precision >::x, Base::Vector3< _Precision >::y, and Base::Vector3< _Precision >::z.
void Inspection::MeshInspectGrid::RebuildGrid | ( | void | ) | [inline, protected, virtual] |
Rebuilds the grid structure.
Must be implemented in sub-classes.
Implements MeshCore::MeshGrid.
Definition at line 235 of file InspectionFeature.cpp.
References MeshCore::MeshFacetIterator::Init(), MeshCore::MeshFacetIterator::More(), MeshCore::MeshFacetIterator::Next(), and MeshCore::MeshFacetIterator::Transform().
void Inspection::MeshInspectGrid::Validate | ( | void | ) | [inline] |
Definition at line 143 of file InspectionFeature.cpp.
void Inspection::MeshInspectGrid::Validate | ( | const MeshCore::MeshKernel & | rclM | ) | [inline, virtual] |
Validates the grid structure and rebuilds it if needed.
Must be implemented in sub-classes.
Implements MeshCore::MeshGrid.
Definition at line 138 of file InspectionFeature.cpp.
bool Inspection::MeshInspectGrid::Verify | ( | ) | const [inline, virtual] |
Verifies the grid structure and returns false if inconsistencies are found.
Implements MeshCore::MeshGrid.
Definition at line 148 of file InspectionFeature.cpp.