Subject: CGAL users discussion list
List archive
- From: Shriramana Sharma <>
- To:
- Subject: [cgal-discuss] Re: Sequence of boolops on general polygons
- Date: Tue, 5 Feb 2013 17:10:12 +0530
In this connection I also have some queries regarding the lines which
are found in the example bezier_traits_adapter.cpp:
typedef CGAL::Gps_traits_2<Traits_2> Gps_traits_2;
typedef Gps_traits_2::General_polygon_2 Polygon_2;
typedef Gps_traits_2::General_polygon_with_holes_2 Polygon_with_holes_2;
typedef std::list<Polygon_with_holes_2> Polygon_set;
1)
a) Whether CGAL::General_polygon_set_2<Traits_2> cannot be used in the
place of the last line?
b) Or perhaps should CGAL::General_polygon_set_2<Gps_traits_2> be used?
c) What is the difference between Gps_traits_2 and Traits_2?
2) In the previous example the lines:
typedef CGAL::General_polygon_set_2<Traits_2> Polygon_set_2;
typedef Traits_2::General_polygon_2 Polygon_2;
typedef Traits_2::General_polygon_with_holes_2
Polygon_with_holes_2;
... are seen so why in this example the typedefs of Polygon and
Polygon_with_holes are done from Gps_traits_2 and not Traits_2
directly? (This connects with 1b and 1c above.)
3) Why isn't there a consistent interface:
typedef CGAL::General_polygon_2<Traits_2> Polygon_2;
typedef CGAL::General_polygon_with_holes_2<Traits_2>
Polygon_with_holes_2;
typedef CGAL::General_polygon_set_2<Traits_2> Polygon_set_2;
but Polygon_set_2 is always initialized from the template with the
traits class as parameter and the other two are instead typedef-ed
from a member type of the traits class?
--
Shriramana Sharma
- [cgal-discuss] Sequence of boolops on general polygons, Shriramana Sharma, 02/05/2013
- [cgal-discuss] Re: Sequence of boolops on general polygons, Shriramana Sharma, 02/05/2013
- [cgal-discuss] Re: Sequence of boolops on general polygons, Shriramana Sharma, 02/05/2013
- Re: [cgal-discuss] Re: Sequence of boolops on general polygons, Efi Fogel, 02/11/2013
- Re: [cgal-discuss] Re: Sequence of boolops on general polygons, Efi Fogel, 02/11/2013
- [cgal-discuss] Re: Sequence of boolops on general polygons, Shriramana Sharma, 02/05/2013
- [cgal-discuss] Re: Sequence of boolops on general polygons, Shriramana Sharma, 02/05/2013
- Re: [cgal-discuss] Re: Sequence of boolops on general polygons, Ophir Setter, 02/05/2013
- Re: [cgal-discuss] Re: Sequence of boolops on general polygons, Efi Fogel, 02/11/2013
- Re: [cgal-discuss] Re: Sequence of boolops on general polygons, Shriramana Sharma, 02/12/2013
- [cgal-discuss] Re: Sequence of boolops on general polygons, Shriramana Sharma, 02/05/2013
Archive powered by MHonArc 2.6.18.