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

[visual] Adds features to LineAxis and DrawTools #5258

Merged
merged 3 commits into from
Feb 12, 2025

Conversation

EulalieCoevoet
Copy link
Contributor

In this PR:

  • LineAxis: fixes the usage of the data thickness (it wasn't used).
  • LineAxis: adds the option to draw the lines as infinite lines (new feature)
  • DrawTools: adds a method to change the thickness of the infinite line
  • DrawTools: adds an option to make the infinite line visually gradually vanishing

Results:

Light mode
Dark mode


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

- fixes usage of thickness
- new feature: infinite lines
- new feature: vanishing infinite line
- fixes typo
@bakpaul bakpaul added the pr: status to review To notify reviewers to review this pull-request label Feb 4, 2025

std::vector<type::Vec2i> indices = {type::Vec2i(0,1)};

auto box = getContext()->f_bbox.getValue().maxBBox() - getContext()->f_bbox.getValue().minBBox();
Copy link
Contributor

Choose a reason for hiding this comment

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

I would factorize the getContext()->f_box.getValue() /

@hugtalbot
Copy link
Contributor

Nice @EulalieCoevoet 👍

@hugtalbot
Copy link
Contributor

[ci-build]

@hugtalbot hugtalbot added the enhancement About a possible enhancement label Feb 12, 2025
@hugtalbot hugtalbot 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 Feb 12, 2025
@hugtalbot hugtalbot merged commit f2f0b10 into sofa-framework:master Feb 12, 2025
14 of 18 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement About a possible enhancement 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