diff --git a/src/Registration/ClosestPointRegistrationForceField.inl b/src/Registration/ClosestPointRegistrationForceField.inl index c1222b6..1e1d920 100644 --- a/src/Registration/ClosestPointRegistrationForceField.inl +++ b/src/Registration/ClosestPointRegistrationForceField.inl @@ -40,7 +40,6 @@ #include #include #include -#include namespace sofa @@ -428,7 +427,7 @@ void ClosestPointRegistrationForceField::draw(const core::visual::Vis for ( unsigned int j = 0; j < 3; j++) { const unsigned int& indexP = t[i][j]; - sofa::gl::Color::setHSVA(dists[indexP]*240./max,1.,.8,1.); + sofa::type::RGBAColor::fromHSVA(dists[indexP]*240./max,1.,.8,1.); glVertex3d(x[indexP][0],x[indexP][1],x[indexP][2]); } } @@ -441,7 +440,7 @@ void ClosestPointRegistrationForceField::draw(const core::visual::Vis glBegin( GL_POINTS); for (unsigned int i=0; i