1 #ifndef my_pyramidamid_h_ 2 #define my_pyramidamid_h_ 3 4 #include <vpyr/vpyr_2_pyramid.h> 5 #include <vpyr/vpyr_2_tpyramid.h> 6 7 struct IdData 8 { 9 int id ; 10 }; 11 12 struct my_pyramid_vertex : public vmap_2_tpdl_vertex< vmap_simple_data<IdData> > 13 { idmy_pyramid_vertex14 int id() const 15 { 16 return data().id ; 17 } 18 idmy_pyramid_vertex19 int & id() 20 { 21 return data().id ; 22 } 23 }; 24 25 struct my_pyramid_edge : public vmap_2_tpdl_edge< vmap_simple_data<IdData> > 26 { idmy_pyramid_edge27 int id() const 28 { 29 return data().id ; 30 } 31 idmy_pyramid_edge32 int & id() 33 { 34 return data().id ; 35 } 36 }; 37 38 struct my_pyramid_face : public vmap_2_tpdl_face< vmap_simple_data<IdData> > 39 { idmy_pyramid_face40 int id() const 41 { 42 return data().id ; 43 } 44 idmy_pyramid_face45 int & id() 46 { 47 return data().id ; 48 } 49 }; 50 51 struct my_pyramid_dart : public vmap_2_tpdl_dart< vmap_simple_data<IdData> > 52 { idmy_pyramid_dart53 int id() const 54 { 55 return data().id ; 56 } 57 idmy_pyramid_dart58 int & id() 59 { 60 return data().id ; 61 } 62 }; 63 64 //typedef vmap_2_pyramid<> Pyramid1 ; 65 typedef vpyr_2_tpyramid_level<my_pyramid_vertex,my_pyramid_edge,my_pyramid_face,my_pyramid_dart> my_pyramid_level ; 66 //class my_pyramid_level : public vmap_2_tpyramid_level<my_pyramid_vertex,my_pyramid_edge,my_pyramid_face,my_pyramid_dart> 67 //{ 68 //}; 69 typedef vpyr_2_tpyramid<my_pyramid_level> my_tpyramid ; 70 71 72 void build_base_grid(my_tpyramid & p) ; 73 74 #endif 75