35 #ifndef NekMeshUtils_CADSYSTEM_OCE_CADSYSTEMOCE 36 #define NekMeshUtils_CADSYSTEM_OCE_CADSYSTEMOCE 43 namespace NekMeshUtils
55 static std::string
key;
75 void AddVert(
int i, TopoDS_Shape in);
77 void AddCurve(
int i, TopoDS_Shape in);
79 void AddSurf(
int i, TopoDS_Shape in);
82 TopoDS_Shape
BuildGeo(std::string geo);
static CADSystemSharedPtr create(std::string name)
Base class for CAD interface system.
std::shared_ptr< CADSystem > CADSystemSharedPtr
void AddVert(int i, TopoDS_Shape in)
Function to add curve to CADSystem::m_verts.
TopoDS_Shape BuildGeo(std::string geo)
void AddCurve(int i, TopoDS_Shape in)
Function to add curve to CADSystem::m_curves.
TopoDS_Shape shape
OCC master object.
std::shared_ptr< CADSystemOCE > CADSystemOCESharedPtr
TopoDS_Shape BuildNACA(std::string naca)
CADSystemOCE(std::string name)
Default constructor.
Array< OneD, NekDouble > GetBoundingBox()
Returns bounding box of the domain.
static std::shared_ptr< DataType > AllocateSharedPtr(const Args &...args)
Allocate a shared pointer from the memory pool.
TopTools_IndexedMapOfShape mapOfFaces
TopTools_IndexedMapOfShape mapOfVerts
bool LoadCAD()
Initialises CAD and makes surface, curve and vertex maps.
TopTools_IndexedMapOfShape mapOfEdges
void AddSurf(int i, TopoDS_Shape in)
Function to add surface to CADSystem::m_surfs.