Nektar++
|
Base class for CAD interface system. More...
#include <CADSystem.h>
Public Member Functions | |
CADSystem (const std::string &name) | |
Default constructor. More... | |
std::string | GetName () |
Return the name of the CAD system. More... | |
bool | LoadCAD () |
Initialises CAD and makes surface and curve maps. More... | |
void | Report () |
Reports basic properties to screen. More... | |
Array< OneD, NekDouble > | GetBoundingBox () |
Returns bounding box of the domain. More... | |
int | GetNumSurf () |
Return number of surfaces. More... | |
int | GetNumCurve () |
Return number of curves. More... | |
const CADCurveSharedPtr | GetCurve (int i) |
Gets curve type from map. More... | |
CADSurfSharedPtr | GetSurf (int i) |
Gets suface from map. More... | |
int | GetEPC () |
Return Euler-Poincare number. More... | |
Private Member Functions | |
void | AddCurve (int i, TopoDS_Shape in) |
Private function to add curve to CADSystem::m_curves. More... | |
void | AddSurf (int i, TopoDS_Shape in, std::vector< std::vector< std::pair< int, int > > > ein) |
Private function to add surface to CADSystem::m_surfs. More... | |
Private Attributes | |
std::string | m_name |
Name of cad file to be opened, including file extension. More... | |
int | m_epc |
Euler-Poincare number of the CAD. More... | |
std::map< int, CADCurveSharedPtr > | m_curves |
map of curves More... | |
std::map< int, CADSurfSharedPtr > | m_surfs |
map of surfaces More... | |
Friends | |
class | MemoryManager< CADSystem > |
Base class for CAD interface system.
A class which can load and interact with CAD for Nektar++ using OpenCascade. This class contains maps to subclasses surface and curves.
Definition at line 59 of file CADSystem.h.
|
inline |
Default constructor.
Definition at line 67 of file CADSystem.h.
|
private |
Private function to add curve to CADSystem::m_curves.
Definition at line 261 of file CADSystem.cpp.
|
private |
Private function to add surface to CADSystem::m_surfs.
Definition at line 268 of file CADSystem.cpp.
Returns bounding box of the domain.
Gets the bounding box of the domain by considering the start and end points of each curve in the geometry.
Definition at line 77 of file CADSystem.cpp.
|
inline |
Gets curve type from map.
Definition at line 95 of file CADSystem.h.
References ASSERTL0, Nektar::iterator, and m_curves.
|
inline |
Return Euler-Poincare number.
Definition at line 119 of file CADSystem.h.
References m_epc.
string Nektar::LibUtilities::CADSystem::GetName | ( | ) |
Return the name of the CAD system.
Definition at line 53 of file CADSystem.cpp.
|
inline |
Return number of curves.
Definition at line 87 of file CADSystem.h.
References m_curves.
|
inline |
Return number of surfaces.
Definition at line 79 of file CADSystem.h.
References m_surfs.
|
inline |
Gets suface from map.
Definition at line 107 of file CADSystem.h.
References ASSERTL0, Nektar::iterator, and m_surfs.
bool Nektar::LibUtilities::CADSystem::LoadCAD | ( | ) |
Initialises CAD and makes surface and curve maps.
Definition at line 111 of file CADSystem.cpp.
References ASSERTL0, and Nektar::iterator.
void Nektar::LibUtilities::CADSystem::Report | ( | ) |
Reports basic properties to screen.
Definition at line 61 of file CADSystem.cpp.
|
friend |
Definition at line 62 of file CADSystem.h.
|
private |
map of curves
Definition at line 135 of file CADSystem.h.
Referenced by GetCurve(), and GetNumCurve().
|
private |
Euler-Poincare number of the CAD.
Definition at line 133 of file CADSystem.h.
Referenced by GetEPC().
|
private |
Name of cad file to be opened, including file extension.
Definition at line 131 of file CADSystem.h.
|
private |
map of surfaces
Definition at line 137 of file CADSystem.h.
Referenced by GetNumSurf(), and GetSurf().