Skip to content

Commit

Permalink
update color API
Browse files Browse the repository at this point in the history
  • Loading branch information
fredroy committed Oct 27, 2023
1 parent aa7b2cd commit 3a64b00
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Registration/ClosestPointRegistrationForceField.inl
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
#include <limits>
#include <set>
#include <iterator>
#include <sofa/gl/Color.h>


namespace sofa
Expand Down Expand Up @@ -428,7 +427,7 @@ void ClosestPointRegistrationForceField<DataTypes>::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]);
}
}
Expand All @@ -441,7 +440,7 @@ void ClosestPointRegistrationForceField<DataTypes>::draw(const core::visual::Vis
glBegin( GL_POINTS);
for (unsigned int i=0; i<dists.size(); i++)
{
sofa::gl::Color::setHSVA(dists[i]*240./max,1.,.8,1.);
sofa::type::RGBAColor::fromHSVA(dists[i]*240./max,1.,.8,1.);
glVertex3d(x[i][0],x[i][1],x[i][2]);
}
glEnd();
Expand Down

0 comments on commit 3a64b00

Please sign in to comment.