Sundance::Rivara::Edge Class Reference

class Edge is a one-dimensional edge in a simplicial mesh. More...

Inheritance diagram for Sundance::Rivara::Edge:

Sundance::Rivara::TreeNode

List of all members.

Public Member Functions

 Edge (const RCP< Node > &a, const RCP< Node > &b)
 Construct with two nodes.
void addConnectingElement (Element *elem)
 Add an element to the list of elements containing this edge.
double length () const
 Return the length of the edge.
void getUnrefinedCofacets (Array< Element * > &elements) const
 Return a list of the cofacets of this edge that still need refinement.
RCP< Nodebisect (RivaraMesh *mesh)
 Bisect the edge.
const RCP< Node > & node (int i) const
int ownerProc () const
int globalIndex () const
 Return the global index of this edge.
void setGlobalIndex (int globalIndex)
 Set the global index of this edge.
void setLabel (int label)
 Set the label of this edge.
int label () const
 Get the label.

Private Attributes

int label_
Array< RCP< Node > > nodes_
Array< Element * > elements_
RCP< Nodemidpoint_
int ownerProc_


Detailed Description

class Edge is a one-dimensional edge in a simplicial mesh.

Definition at line 24 of file SundanceRivaraEdge.hpp.


Constructor & Destructor Documentation

Edge::Edge ( const RCP< Node > &  a,
const RCP< Node > &  b 
)

Construct with two nodes.

Definition at line 11 of file SundanceRivaraEdge.cpp.

References ownerProc_.


Member Function Documentation

void Edge::addConnectingElement ( Element elem  ) 

Add an element to the list of elements containing this edge.

Definition at line 26 of file SundanceRivaraEdge.cpp.

References elements_.

RCP< Node > Edge::bisect ( RivaraMesh mesh  ) 

void Edge::getUnrefinedCofacets ( Array< Element * > &  elements  )  const

Return a list of the cofacets of this edge that still need refinement.

Definition at line 39 of file SundanceRivaraEdge.cpp.

References elements_, and Sundance::Rivara::TreeNode::hasChildren().

int Sundance::Rivara::Edge::globalIndex (  )  const

Return the global index of this edge.

int Sundance::Rivara::Edge::label (  )  const [inline]

Get the label.

Definition at line 76 of file SundanceRivaraEdge.hpp.

References label_.

double Edge::length (  )  const

Return the length of the edge.

Definition at line 31 of file SundanceRivaraEdge.cpp.

References nodes_.

const RCP<Node>& Sundance::Rivara::Edge::node ( int  i  )  const [inline]

Definition at line 54 of file SundanceRivaraEdge.hpp.

References nodes_.

int Sundance::Rivara::Edge::ownerProc (  )  const [inline]

Definition at line 56 of file SundanceRivaraEdge.hpp.

References ownerProc_.

void Sundance::Rivara::Edge::setGlobalIndex ( int  globalIndex  ) 

Set the global index of this edge.

void Sundance::Rivara::Edge::setLabel ( int  label  )  [inline]

Set the label of this edge.

Definition at line 71 of file SundanceRivaraEdge.hpp.

References label_.


Member Data Documentation

Definition at line 81 of file SundanceRivaraEdge.hpp.

Referenced by addConnectingElement(), and getUnrefinedCofacets().

Definition at line 79 of file SundanceRivaraEdge.hpp.

Referenced by bisect(), label(), and setLabel().

Definition at line 83 of file SundanceRivaraEdge.hpp.

Referenced by bisect().

Array<RCP<Node> > Sundance::Rivara::Edge::nodes_ [private]

Definition at line 80 of file SundanceRivaraEdge.hpp.

Referenced by bisect(), length(), and node().

Definition at line 85 of file SundanceRivaraEdge.hpp.

Referenced by bisect(), Edge(), and ownerProc().

Site Contact