Version: 9.16.0
HexahedronTest.cxx File Reference
#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>
Include dependency graph for HexahedronTest.cxx:

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 ()
 

Function Documentation

◆ GridInitAndIntersectWithShape()

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().

◆ loadBrepShape()

void loadBrepShape ( std::string  shapeName,
TopoDS_Shape &  shape 
)

Shape loader.

References UNV164::Read().

Referenced by testNRTJ4(), and testNRTM1().

◆ main()

int main ( )

References testNRTJ4(), and testNRTM1().

◆ testNRTJ4()

◆ testNRTM1()