Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CGALPlugin] FIX sofa::type #2246

Merged
merged 1 commit into from
Jul 12, 2021

Conversation

pedroperrusi
Copy link
Contributor

Fix sofa::type namespace variables in CGALPlugin for release v21.06.


By submitting this pull request, I acknowledge that
I have read, understand, and agree SOFA Developer Certificate of Origin (DCO).


Reviewers will merge this pull-request only if

  • it builds with SUCCESS for all platforms on the CI.
  • it does not generate new warnings.
  • it does not generate new unit test failures.
  • it does not generate new scene test failures.
  • it does not break API compatibility.
  • it is more than 1 week old (or has fast-merge label).

@pedroperrusi pedroperrusi added pr: fix Fix a bug pr: fast merge Minor change that can be merged without waiting for the 7 review days labels Jul 12, 2021
@pedroperrusi pedroperrusi added the pr: status to review To notify reviewers to review this pull-request label Jul 12, 2021
@fredroy fredroy added pr: status ready Approved a pull-request, ready to be squashed and removed pr: status to review To notify reviewers to review this pull-request labels Jul 12, 2021
@@ -508,21 +508,21 @@ void CylinderMesh<DataTypes>::draw(const sofa::core::visual::VisualParams* vpara
points.resize(m_nbVertices);
for (int i = 0; i < m_nbVertices; ++i)
points[i] = coords[i];
vparams->drawTool()->drawPoints(points,8,helper::types::RGBAColor(0.0, 0.0, 1.0,1));
vparams->drawTool()->drawPoints(points,8,type::RGBAColor(0.0, 0.0, 1.0,1));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(just a comment) next time, if the color is obvious, replace it with the named function, like
type::RGBAColor::green() in this case

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks,
I see and often use the new handy functions for colors
Since this was only a fix, I did not bother to change the source beyond compilation

@fredroy fredroy merged commit b7a45e2 into sofa-framework:master Jul 12, 2021
@pedroperrusi pedroperrusi deleted the fix-cgal-types branch July 12, 2021 13:32
@guparan guparan added this to the v21.12 milestone Oct 1, 2021
@guparan guparan changed the title [Fix] sofa::type in CGALPlugin [CGALPlugin] FIX sofa::type Dec 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: fast merge Minor change that can be merged without waiting for the 7 review days pr: fix Fix a bug pr: status ready Approved a pull-request, ready to be squashed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants