class Triangle : public Element

Data type triangle element

Inheritance:


Public Methods

Triangle( int *ind, int attr = 1 )
Constructs triangle by specifying the indices and the attribute.
Triangle( int ind1, int ind2, int ind3, int attr = 1 )
Constructs triangle by specifying the indices and the attribute.
int NeedRefinement( STable &v_to_v, int *middle) const
Return 1 if the element needs refinement in order to get conforming mesh.
virtual void SetVertices(const int *ind)
Set the vertices according to the given input.
virtual void MarkEdge(RectangularMatrix & pmat)
Reorder the vertices so that the longest edge is from vertex 0 to vertex 0
virtual void MarkEdge(const STable &v_to_v, const int *length)
Mark the longest edge by assuming/changing the order of the vertices.
virtual int GetType() const
Return element's type.
virtual void GetVertices( Array<int> &v ) const
Returns the indices of the element's vertices.

Inherited from Element:

Public Classes

enum

Public Methods

inline void GetAttribute( int &attr ) const
inline int GetAttribute() const
inline void SetAttribute(const int attr)

Documentation

Data type triangle element
Triangle( int *ind, int attr = 1 )
Constructs triangle by specifying the indices and the attribute.

Triangle( int ind1, int ind2, int ind3, int attr = 1 )
Constructs triangle by specifying the indices and the attribute.

int NeedRefinement( STable &v_to_v, int *middle) const
Return 1 if the element needs refinement in order to get conforming mesh.

virtual void SetVertices(const int *ind)
Set the vertices according to the given input.

virtual void MarkEdge(RectangularMatrix & pmat)
Reorder the vertices so that the longest edge is from vertex 0 to vertex 0. If called it should be once from the mesh constructor, becouse the order may be used later for setting the edges. *

virtual void MarkEdge(const STable &v_to_v, const int *length)
Mark the longest edge by assuming/changing the order of the vertices.

virtual int GetType() const
Return element's type.

virtual void GetVertices( Array<int> &v ) const
Returns the indices of the element's vertices.


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de