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

option to display unit vector #304

Merged
merged 2 commits into from
Jul 20, 2017
Merged

Conversation

kerautret
Copy link
Member

@kerautret kerautret commented Jun 1, 2017

PR Description

Just a small option to adapt format of vector field.

Checklist

  • Doxygen documentation of the code completed (classes, methods, types, members...).
  • Main tool doxygen documentation (following existing documentation of DGtalTools documentation.
  • Check if it follows the tools structure described in CONTRIBUTING.md
  • New entry in the ChangeLog.md added.
  • Update the readme with potentially a screenshot of the tools if it applies.
  • No warning raised in Debug cmake mode (otherwise, Travis C.I. will fail).

ChangeLog.md Outdated
@@ -6,7 +6,10 @@
(Bertrand Kerautret, [#296](https://github.com/DGtal-team/DGtalTools/pull/296))
- meshViewer: add an option to set the ambient light source.
(Bertrand Kerautret, [#301](https://github.com/DGtal-team/DGtalTools/pull/301))

- 3dSDPViewer: new option to display vector field as unit vector
Copy link
Member

Choose a reason for hiding this comment

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

as unit vectors ?

Copy link
Member Author

Choose a reason for hiding this comment

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

yes

for(unsigned int i =0; i<vectorsPt.size()-1; i=i+2*step)
{
viewer.addLine(vectorsPt.at(i),vectorsPt.at(i+1), lineSize);
if(useUnitVector){
Copy link
Member

Choose a reason for hiding this comment

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

coding style ?

:)

@kerautret
Copy link
Member Author

done thanks ;)

@dcoeurjo
Copy link
Member

thanks merging

@dcoeurjo dcoeurjo merged commit 64b3416 into DGtal-team:master Jul 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants