#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>
Data Structures | |
| struct | SMESH_Mesh_Test |
| Mock mesh. More... | |
| struct | CartesianHypo |
| Mock Hypothesis. More... | |
Functions | |
| 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 | testShape (const TopoDS_Shape theShape, const bool toAddEdges, const bool toCreateFaces, const double theGridSpacing, const double theSizeThreshold, const int theNbCreatedExpected) |
| Test runner. More... | |
| bool | testPrimitives () |
| Test some primitive shapes. 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 testShape().
| int main | ( | ) |
References testPrimitives().
| bool testPrimitives | ( | ) |
| bool testShape | ( | const TopoDS_Shape | theShape, |
| const bool | toAddEdges, | ||
| const bool | toCreateFaces, | ||
| const double | theGridSpacing, | ||
| const double | theSizeThreshold, | ||
| const int | theNbCreatedExpected | ||
| ) |
Test runner.
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, SMESH_subMesh::DependsOn(), GridInitAndIntersectWithShape(), and StdMeshers::Cartesian3D::Hexahedron::MakeElements().
Referenced by testPrimitives().