@@ -107,6 +107,29 @@ int main()
107107
108108
109109 // Some ways of getting point values
110+ typedef model::point<double , 3 , cs::cartesian> point_t ;
111+ typedef model::ring<point_t > ring_t ;
112+ typedef model::PolyhedralSurface<ring_t > poly_t ;
113+
114+ poly_t polyhedron1;
115+ poly_t polyhedron2 = {{{0 ,0 ,0 }, {0 , 1 , 0 }, {1 , 1 , 0 }, {1 , 0 , 0 }, {0 , 0 , 0 }}, {{0 , 0 , 0 }, {0 , 1 , 0 }, {0 , 1 , 1 }, {0 , 0 , 1 }, {0 , 0 , 0 }},
116+ {{0 , 0 , 0 }, {1 , 0 , 0 }, {1 , 0 , 1 }, {0 , 0 , 1 }, {0 , 0 , 0 }}, {{1 , 1 , 1 }, {1 , 0 , 1 }, {0 , 0 , 1 }, {0 , 1 , 1 }, {1 , 1 , 1 }}, {{1 , 1 , 1 }, {1 , 0 , 1 }, {1 , 0 , 0 }, {1 , 1 , 0 }, {1 , 1 , 1 }},
117+ {{1 , 1 , 1 }, {1 , 1 , 0 }, {0 , 1 , 0 }, {0 , 1 , 1 }, {1 , 1 , 1 }} };
118+
119+ // append(polyhedron1[0], point_t{1, 0, 0});
120+ // append(polyhedron1[0], point_t{0, 0, 0});
121+ // append(polyhedron1[0], point_t{0, 1, 0});
122+ // append(polyhedron1[0], point_t{1, 1, 0});
123+ // append(polyhedron1[0], point_t{0, 0, 0});
124+ read_wkt (" POLYHEDRALSURFACE Z(((0 0 0, 0 1 0, 1 1 0, 1 0 0, 0 0 0)), ((0 0 0, 0 1 0, 0 1 1, 0 0 1, 0 0 0)), ((0 0 0, 1 0 0, 1 0 1, 0 0 1, 0 0 0)), ((1 1 1, 1 0 1, 0 0 1, 0 1 1, 1 1 1)), ((1 1 1, 1 0 1, 1 0 0, 1 1 0, 1 1 1)), ((1 1 1, 1 1 0, 0 1 0, 0 1 1, 1 1 1)))" , polyhedron1);
125+
126+ typedef model::polygon<point_2d> poly;
127+ poly polygon1;
128+ read_wkt (" POLYGON((0 0, 0 7, 4 2, 2 0, 0 0))" , polygon1);
129+
130+ typedef model::linestring<point_2d> lines;
131+ lines line;
132+ read_wkt (" LINESTRING(0 0, 2 2, 3 1)" , line);
110133
111134 // 1: using the "get" function following the concepts behind
112135 std::cout << get<0 >(p2) << " ," << get<1 >(p2) << std::endl;
0 commit comments