shape_doc 0.1
/Users/mourrain/Devel/mmx/shape/include/shape/face_set.hpp
Go to the documentation of this file.
00001 /*****************************************************************************
00002  * M a t h e m a g i x
00003  *****************************************************************************
00004  * GlObject.hpp
00005  * 2008-03-21
00006  * Bernad Mourrain
00007  *****************************************************************************
00008  *               Copyright (C) 2006 INRIA Sophia-Antipolis
00009  *****************************************************************************
00010  * Comments :
00011  ****************************************************************************/
00012 # ifndef shape_face_set_hpp
00013 # define shape_face_set_hpp
00014 
00015 # include <shape/shape.hpp>
00016 # include <shape/edge_set.hpp>
00017 # include <shape/face.hpp>
00018 
00019 # define TMPL  template<class K>
00020 # define Point point<double>
00021 # define Edge  edge
00022 # define Face  face
00023 //====================================================================
00024 namespace mmx {
00025 namespace shape {
00026 
00027   TMPL
00028   class face_set : public EdgeSet {
00029   public:
00030     typedef EdgeSet::Point Point;
00031     typedef EdgeSet::Edge  Edge;
00032     
00033     face_set(void) ;
00034     face_set(unsigned np, unsigned ne=0, unsigned nf=0):EdgeSet(np,ne) {
00035       m_faces.resize(nf);
00036     }
00037     virtual ~face_set(void) ;
00038 
00039   private:
00040     int        type;
00041     Seq<Face>  m_faces; 
00042 
00043   };
00044 
00045 } ; // namespace shape
00046 } ; // namespace mmx
00047 //====================================================================
00048 # undef Point
00049 # undef Edge
00050 # undef Face
00051 # endif // shape_surface_pl_hpp