Version: 9.16.0
HexahedronCanonicalShapesTest.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 dependency graph for HexahedronCanonicalShapesTest.cxx:

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

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

◆ main()

int main ( )

References testPrimitives().

◆ testPrimitives()

bool testPrimitives ( )

Test some primitive shapes.

References testShape().

Referenced by main().

◆ testShape()