diff --git a/Kinetic_data_structures/demo/Kinetic_data_structures/include/SoQt_moving_weighted_points_3.h b/Kinetic_data_structures/demo/Kinetic_data_structures/include/SoQt_moving_weighted_points_3.h index 5d564ae2361..5e15eb67be9 100644 --- a/Kinetic_data_structures/demo/Kinetic_data_structures/include/SoQt_moving_weighted_points_3.h +++ b/Kinetic_data_structures/demo/Kinetic_data_structures/include/SoQt_moving_weighted_points_3.h @@ -301,8 +301,9 @@ void SoQt_moving_weighted_points_3::update_coordinates() CGAL_assertion(n->isOfType(SoShapeKit::getClassTypeId())); SoShapeKit *sh= reinterpret_cast(n); SoTransform *tr= SO_GET_PART(sh, "localTransform", SoTransform); - tr->translation.setValue(CGAL::to_double(pt.x()), CGAL::to_double(pt.y()), - CGAL::to_double(pt.z())); + tr->translation.setValue(CGAL::to_double(pt.point().x()), + CGAL::to_double(pt.point().y()), + CGAL::to_double(pt.point().z())); SoSphere *sph= SO_GET_PART(sh, "shape", SoSphere); sph->radius.setValue(radius); }