Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

Tetrahedron.h

Go to the documentation of this file.
00001 // Copyright (C) 2002 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __TETRAHEDRON_H
00005 #define __TETRAHEDRON_H
00006 
00007 #include <dolfin/Array.h>
00008 #include <dolfin/GenericCell.h>
00009 
00010 namespace dolfin {
00011 
00012   class Node;
00013   class Cell;
00014   
00015   class Tetrahedron : public GenericCell {
00016   public:
00017 
00018     Tetrahedron(Node& n0, Node& n1, Node& n2, Node& n3);
00019          
00020     int noNodes() const;
00021     int noEdges() const;
00022     int noFaces() const;
00023 
00024     int noBoundaries() const;
00025     
00026     Cell::Type type() const;
00027 
00028     real volume() const;
00029     real diameter() const;
00030     
00031   private:
00032     
00033     void createEdges();
00034     void createFaces();
00035 
00036   };
00037 
00038 }
00039 
00040 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.