Nektar++
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Attributes | List of all members
Nektar::NekMeshUtils::CADVertOCE Class Reference

#include <CADVertOCE.h>

Inheritance diagram for Nektar::NekMeshUtils::CADVertOCE:
Inheritance graph
[legend]
Collaboration diagram for Nektar::NekMeshUtils::CADVertOCE:
Collaboration graph
[legend]

Public Member Functions

 CADVertOCE ()
 Default constructor. More...
 
 ~CADVertOCE ()
 
void Initialise (int i, TopoDS_Shape in)
 
- Public Member Functions inherited from Nektar::NekMeshUtils::CADVert
 CADVert ()
 Default constructor. More...
 
 ~CADVert ()
 
Array< OneD, NekDoubleGetLoc ()
 Get x,y,z location of the vertex. More...
 
NodeSharedPtr GetNode ()
 returns a node object of the cad vertex More...
 
void SetDegen (int s, CADSurfSharedPtr su, NekDouble u, NekDouble v)
 if the vertex is degenerate manually set uv for that surface More...
 
int IsDegen ()
 query is degenerate More...
 
- Public Member Functions inherited from Nektar::NekMeshUtils::CADObject
 CADObject ()
 Default constructor. More...
 
virtual ~CADObject ()
 
int GetId ()
 Return ID of the vertex. More...
 
CADType::cadType GetType ()
 
virtual CADOrientation::Orientation Orientation ()
 

Static Public Member Functions

static CADVertSharedPtr create ()
 

Static Public Attributes

static std::string key
 

Private Attributes

gp_Pnt m_occVert
 OpenCascade object of the curve. More...
 

Additional Inherited Members

- Protected Attributes inherited from Nektar::NekMeshUtils::CADVert
NodeSharedPtr m_node
 mesh convert object of vert More...
 
bool degen
 degen marker More...
 
int degensurf
 degen surface More...
 
- Protected Attributes inherited from Nektar::NekMeshUtils::CADObject
int m_id
 ID of the vert. More...
 
CADType::cadType m_type
 type of the cad object More...
 
CADOrientation::Orientation m_orientation
 orientation of the CADObject More...
 

Detailed Description

Definition at line 47 of file CADVertOCE.h.

Constructor & Destructor Documentation

Nektar::NekMeshUtils::CADVertOCE::CADVertOCE ( )
inline

Default constructor.

Definition at line 61 of file CADVertOCE.h.

62  {
63  }
Nektar::NekMeshUtils::CADVertOCE::~CADVertOCE ( )
inline

Definition at line 65 of file CADVertOCE.h.

66  {
67  }

Member Function Documentation

static CADVertSharedPtr Nektar::NekMeshUtils::CADVertOCE::create ( )
inlinestatic

Definition at line 51 of file CADVertOCE.h.

References Nektar::MemoryManager< DataType >::AllocateSharedPtr().

52  {
54  }
static boost::shared_ptr< DataType > AllocateSharedPtr()
Allocate a shared pointer from the memory pool.
void Nektar::NekMeshUtils::CADVertOCE::Initialise ( int  i,
TopoDS_Shape  in 
)

Definition at line 49 of file CADVertOCE.cpp.

References class_topology::Node.

50 {
51  gp_Trsf transform;
52  gp_Pnt ori(0.0, 0.0, 0.0);
53  transform.SetScale(ori, 1.0 / 1000.0);
54  TopLoc_Location mv(transform);
55  in.Move(mv);
56 
57  m_id = i;
58  m_occVert = BRep_Tool::Pnt(TopoDS::Vertex(in));
59 
60  m_node = boost::shared_ptr<Node>(
61  new Node(i - 1, m_occVert.X(), m_occVert.Y(), m_occVert.Z()));
62  degen = false;
63 
64 }
NodeSharedPtr m_node
mesh convert object of vert
Definition: CADVert.h:121
gp_Pnt m_occVert
OpenCascade object of the curve.
Definition: CADVertOCE.h:73
int m_id
ID of the vert.
Definition: CADObject.h:105
bool degen
degen marker
Definition: CADVert.h:123

Member Data Documentation

std::string Nektar::NekMeshUtils::CADVertOCE::key
static
Initial value:

Definition at line 56 of file CADVertOCE.h.

gp_Pnt Nektar::NekMeshUtils::CADVertOCE::m_occVert
private

OpenCascade object of the curve.

Definition at line 73 of file CADVertOCE.h.