mirror of https://github.com/CGAL/cgal
assign -> object_cast
This commit is contained in:
parent
d2fb090976
commit
d2da608a2a
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue