assign -> object_cast

This commit is contained in:
Sylvain Pion 2008-07-29 14:28:53 +00:00
parent d2fb090976
commit d2da608a2a
4 changed files with 8 additions and 9 deletions

View File

@ -20,6 +20,8 @@ Additional supported platforms:
3- Kernels
- We recommend that you use the object_cast() function instead of assign()
to extract an object from a CGAL::Object, for efficiency reasons.
- The Kernel archetypes provided by the 2D/3D linear kernel have been removed.
- The deprecated linear kernel functors Construct_supporting_line_2 and
Construct_supporting_line_3 have been removed.

View File

@ -184,9 +184,8 @@ public slots:
private slots:
void get_new_object(CGAL::Object obj)
{
Point_2 p;
if(CGAL::assign(p,obj)) {
list_of_points.push_back(p);
if(const Point_2 *p = CGAL::object_cast<Point_2>(&obj)) {
list_of_points.push_back(*p);
something_changed();
}
};

View File

@ -193,9 +193,8 @@ public slots:
private slots:
void get_new_object(CGAL::Object obj)
{
Point_2 p;
if(CGAL::assign(p,obj)) {
list_of_points.push_back(p);
if(const Point_2 *p = CGAL::object_cast<Point_2>(&obj)) {
list_of_points.push_back(*p);
something_changed();
}
};

View File

@ -160,9 +160,8 @@ public slots:
private slots:
void get_new_object(CGAL::Object obj)
{
Point_2 p;
if(CGAL::assign(p,obj)) {
list_of_points.push_back(p);
if(const Point_2 *p = CGAL::object_cast<Point_2>(&obj)) {
list_of_points.push_back(*p);
something_changed();
}
};