Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

LineMesher.h

Go to the documentation of this file.
00001 #ifndef LINEMESHER_H
00002 #define LINEMESHER_H
00003 
00004 #include "SundanceDefs.h"
00005 #include "MeshGenerator.h"
00006 #include "TSFSmartPtr.h"
00007 
00008 
00009 namespace Sundance
00010 {
00011 
00012   using namespace TSF;
00013   using std::string;
00014 
00015   using std::ostream;
00016 
00017   /**
00018    *\ingroup Geometry
00019    * Mesher for lines.
00020    */
00021 
00022   class LineMesher : public MeshGeneratorBase
00023     {
00024     public:
00025       /** Mesh the line segment [a,b] with n equally-spaced nodes. */
00026       LineMesher(double a, double b, int n)
00027         : a_(a), b_(b), n_(n) {;}
00028       /** */
00029       virtual ~LineMesher() {;}
00030 
00031       /** */
00032       virtual Mesh getMesh() const ;
00033 
00034     protected:
00035 
00036       double a_;
00037       double b_;
00038       int n_;
00039     };
00040 
00041 }
00042 
00043 #endif

Contact:
Kevin Long (krlong@ca.sandia.gov)


Documentation generated by