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

[Topology.Container] Various clean in TriangleSetGeometryAlgorithms #4746

Merged
merged 6 commits into from
Jun 6, 2024

Conversation

epernod
Copy link
Contributor

@epernod epernod commented May 17, 2024


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).

@epernod epernod added pr: status wip Development in the pull-request is still in progress pr: clean Cleaning the code pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels May 17, 2024
@epernod
Copy link
Contributor Author

epernod commented May 17, 2024

[ci-build][with-all-tests]

Comment on lines -390 to -401
template<class Vec>
bool is_point_on_edge(const Vec& p, const Vec& a, const Vec& b)
{
const typename Vec::value_type ZERO = 1e-12;
Vec v = (p - a).cross(p - b);

if(v.norm2() < ZERO)
return true;
else
return false;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

why removing this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This method was not used anymore, only declared in the .inl and not correct.
There is a method in Edge.h for that.

if(DO_EXTRADEBUG_MESSAGES){
dmsg_info() << "TriangleSetTopology.inl : Cut is not reached because inputs elements are the same element." ;
}
msg_warning() << "TriangleSetTopology.inl : Cut is not reached because inputs elements are the same element." ;
Copy link
Contributor

Choose a reason for hiding this comment

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

these are no more debug messages, is this on purpose?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes according to the message this means the cut won't happen. it should be a warning for the user.

@epernod epernod added this to the v24.12 milestone May 22, 2024
@fredroy fredroy added pr: status wip Development in the pull-request is still in progress and removed pr: status to review To notify reviewers to review this pull-request labels May 22, 2024
@epernod epernod force-pushed the inf_2024_10_minorTopoClean branch from 32d67ff to 51f1c4d Compare May 29, 2024 14:03
@epernod epernod added pr: status to review To notify reviewers to review this pull-request and removed pr: status wip Development in the pull-request is still in progress labels May 29, 2024
@epernod
Copy link
Contributor Author

epernod commented May 29, 2024

[ci-build][with-all-tests]

@bakpaul bakpaul 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 Jun 6, 2024
@bakpaul bakpaul merged commit 954fcc4 into sofa-framework:master Jun 6, 2024
19 checks passed
@epernod epernod deleted the inf_2024_10_minorTopoClean branch August 27, 2024 21:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr: clean Cleaning the code 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