Shapeworks Studio  2.1
Shape analysis software suite
List of all members | Public Member Functions | Protected Attributes
FECoreMesh Class Referenceabstract

#include <FECoreMesh.h>

+ Inheritance diagram for FECoreMesh:

Public Member Functions

 FECoreMesh ()
 constructor
 
virtual ~FECoreMesh ()
 destructor
 
virtual void Create (int nodes, int elems, int faces=0, int edges=0)=0
 allocate space for mesh
 
bool IsType (int ntype)
 check the type of the mesh More...
 
virtual int Elements () const =0
 total number of elements
 
virtual FEElement_ElementRef (int n)=0
 return reference to element
 
virtual FEElementElementPtr (int n=0)=0
 return pointer to element
 
int Nodes () const
 
int Edges () const
 
int Faces () const
 
FENodeNode (int n)
 
FEEdgeEdge (int n)
 
FEFaceFace (int n)
 
FENodeNodePtr (int n=0)
 
FEEdgeEdgePtr (int n=0)
 
FEFaceFacePtr (int n=0)
 

Protected Attributes

std::vector< FENodem_Node
 FE nodes.
 
std::vector< FEEdgem_Edge
 FE edges.
 
std::vector< FEFacem_Face
 FE faces.
 

Detailed Description

This class defines a simple mesh structure that provides basic container services for storing mesh data.

Definition at line 8 of file FECoreMesh.h.

Member Function Documentation

bool FECoreMesh::IsType ( int  ntype)

check the type of the mesh

This function checks if all elements are of the type specified in the argument.

Definition at line 17 of file FECoreMesh.cpp.

18 {
19  int NE = Elements();
20  for (int i=0; i<NE; ++i)
21  {
22  FEElement_& el = ElementRef(i);
23  if (el.GetType() != ntype) return false;
24  }
25  return true;
26 }
virtual int Elements() const =0
total number of elements
virtual FEElement_ & ElementRef(int n)=0
return reference to element
int GetType() const
return the element type
Definition: FEElement.h:193

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