#include "StdMeshers_Cartesian_3D_Hexahedron.hxx"#include "StdMeshers_CartesianParameters3D.hxx"#include <cppunit/TestAssert.h>#include <BRep_Builder.hxx>#include <BRepTools.hxx>#include <BRepPrimAPI_MakeBox.hxx>#include <BRepPrimAPI_MakeCylinder.hxx>#include <BRepPrimAPI_MakeSphere.hxx>#include <BRepPrimAPI_MakeCone.hxx>#include <iostream>#include <memory>#include <numeric>
Data Structures | |
| struct | SMESH_Mesh_Test |
| Mock mesh. More... | |
| struct | CartesianHypo |
| Mock Hypothesis. More... | |
Functions | |
| void | loadBrepShape (std::string shapeName, TopoDS_Shape &shape) |
| Shape loader. More... | |
| void | GridInitAndIntersectWithShape (Grid &grid, double gridSpacing, double theSizeThreshold, const TopoDS_Shape theShape, TEdge2faceIDsMap &edge2faceIDsMap, const int theNumOfThreads) |
| Initialize the grid and intesersectors of grid with the geometry. More... | |
| bool | testNRTM1 () |
| Reproduce conditions of TBPERF_GRIDS_PERF_SMESH_M1 test to detect and solve segfault in unit test. More... | |
| bool | testNRTJ4 () |
| Reproduce conditions of TBPERF_GRIDS_PERF_SMESH_J4 test to detect and solve segfault in unit test. More... | |
| int | main () |
| void GridInitAndIntersectWithShape | ( | Grid & | grid, |
| double | gridSpacing, | ||
| double | theSizeThreshold, | ||
| const TopoDS_Shape | theShape, | ||
| TEdge2faceIDsMap & | edge2faceIDsMap, | ||
| const int | theNumOfThreads | ||
| ) |
Initialize the grid and intesersectors of grid with the geometry.
References StdMeshers::Cartesian3D::Grid::GridInitAndInterserctWithShape().
Referenced by testNRTJ4(), and testNRTM1().
| void loadBrepShape | ( | std::string | shapeName, |
| TopoDS_Shape & | shape | ||
| ) |
| int main | ( | ) |
References testNRTJ4(), and testNRTM1().
| bool testNRTJ4 | ( | ) |
Reproduce conditions of TBPERF_GRIDS_PERF_SMESH_J4 test to detect and solve segfault in unit test.
References StdMeshers::Cartesian3D::Grid::_helper, StdMeshers::Cartesian3D::Grid::_sizeThreshold, StdMeshers::Cartesian3D::Grid::_toAddEdges, StdMeshers::Cartesian3D::Grid::_toConsiderInternalFaces, StdMeshers::Cartesian3D::Grid::_toCreateFaces, StdMeshers::Cartesian3D::Grid::_toUseQuanta, StdMeshers::Cartesian3D::Grid::_toUseThresholdForInternalFaces, begin(), SMESH_subMesh::DependsOn(), end(), GridInitAndIntersectWithShape(), loadBrepShape(), and StdMeshers::Cartesian3D::Hexahedron::MakeElements().
Referenced by main().
| bool testNRTM1 | ( | ) |
Reproduce conditions of TBPERF_GRIDS_PERF_SMESH_M1 test to detect and solve segfault in unit test.
References StdMeshers::Cartesian3D::Grid::_helper, StdMeshers::Cartesian3D::Grid::_sizeThreshold, StdMeshers::Cartesian3D::Grid::_toAddEdges, StdMeshers::Cartesian3D::Grid::_toConsiderInternalFaces, StdMeshers::Cartesian3D::Grid::_toCreateFaces, StdMeshers::Cartesian3D::Grid::_toUseQuanta, StdMeshers::Cartesian3D::Grid::_toUseThresholdForInternalFaces, begin(), SMESH_subMesh::DependsOn(), end(), GridInitAndIntersectWithShape(), loadBrepShape(), and StdMeshers::Cartesian3D::Hexahedron::MakeElements().
Referenced by main().