Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes
FEElement_ Class Reference
+ Inheritance diagram for FEElement_:
+ Collaboration diagram for FEElement_:

Public Member Functions

 FEElement_ ()
 constructor
 
bool is_equal (FEElement_ &e)
 
int GetType () const
 return the element type
 
bool IsType (int ntype) const
 Is the element of this type.
 
int Nodes () const
 number of nodes
 
int Faces () const
 Number of faces (shells have no faces)
 
int Edges () const
 Number of edges (solids have no edges)
 
int GetFace (int i, int *n)
 Get only the nodes of face i (only solids have faces)
 
FEFace GetFace (int i)
 Get the face i (only solids have faces)
 
FEFace GetShellFace ()
 Get the face of a shell.
 
FEEdge GetEdge (int i)
 Get the edge.
 
bool IsExterior ()
 Is this an exterior element. More...
 
bool IsSolid ()
 
bool IsShell ()
 
bool IsBeam ()
 
- Public Member Functions inherited from FEItem
bool IsVisible () const
 
bool IsSelected () const
 
void Select ()
 
void UnSelect ()
 
void Show ()
 
void Hide ()
 
unsigned int GetFEState () const
 
void SetFEState (unsigned int state)
 

Public Attributes

int * m_node
 pointer to node data
 
int * m_nbr
 neighbour elements
 
int * m_face
 faces (-1 for interior faces)
 
double * m_h
 element thickness (only used by shells)
 
vec3d m_fiber
 fiber orientation More...
 
mat3d m_Q
 local material orientation
 
bool m_Qactive
 active local material orientation
 
double m_a0
 cross-sectional area (only used by truss elements)
 
- Public Attributes inherited from FEItem
int m_ntag
 
int m_gid
 
int m_nid
 

Protected Member Functions

void copy (const FEElement_ &el)
 

Protected Attributes

int m_ntype
 type of element
 
int m_nodes
 nr of nodes
 
int m_nfaces
 nr of faces ( 0 for shells)
 
int m_nedges
 nr of edges ( 0 for solids)
 

Detailed Description

Definition at line 183 of file FEElement.h.

Member Function Documentation

bool FEElement_::IsExterior ( )

Is this an exterior element.

Is this an exterior element (i.e. an element that is on the outside of the mesh). shells and beams are alwasy exterior. Solids are exterior if they have at least one null neighbor.

Definition at line 392 of file FEElement.cpp.

393 {
394  if (!IsSolid()) return true;
395  int n = Faces();
396  for (int i=0; i<n; ++i) if (m_nbr[i] < 0) return true;
397  return false;
398 }
int Faces() const
Number of faces (shells have no faces)
Definition: FEElement.h:202
int * m_nbr
neighbour elements
Definition: FEElement.h:234

Member Data Documentation

vec3d FEElement_::m_fiber

fiber orientation

Todo:
maybe I can add an element attribute section

Definition at line 239 of file FEElement.h.


The documentation for this class was generated from the following files: