From 3a64b0033c626579828aaa94f846d469b0f27567 Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Fri, 27 Oct 2023 14:39:08 +0900 Subject: [PATCH] update color API --- src/Registration/ClosestPointRegistrationForceField.inl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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