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
Cone actor uses repeat_primitive
by default
#547
Conversation
Codecov Report
@@ Coverage Diff @@
## master #547 +/- ##
==========================================
+ Coverage 88.58% 88.69% +0.10%
==========================================
Files 55 55
Lines 11003 11107 +104
Branches 1084 1092 +8
==========================================
+ Hits 9747 9851 +104
Misses 959 959
Partials 297 297
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fury/actor.py
Outdated
@@ -1858,6 +1858,8 @@ def cone(centers, directions, colors, heights=1., resolution=10, | |||
If faces is None then a cone is created based on directions, heights | |||
and resolution. If not then a cone is created with the provided | |||
vertices and faces. | |||
use_primitive: boolean |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool, optional
instead
fury/primitive.py
Outdated
|
||
Parameters | ||
---------- | ||
radius: float |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float, optional
instead
fury/primitive.py
Outdated
---------- | ||
radius: float | ||
Radius of the cone | ||
height: float |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
float, optional
instead
fury/primitive.py
Outdated
Radius of the cone | ||
height: float | ||
Height of the cone | ||
sectors: int |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
int, optional
instead
fury/primitive.py
Outdated
|
||
""" | ||
|
||
if not sectors > 2: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if sectors < 2:
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update. Unfortunately, tests are failing so I will check only after you fix the tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @skoudoro, I just figured out that advanced_geometry_test
was failing due to the arrow_actor
. changing the height
parameter with scale
fixes the size of arrows 😅 .
I changed the axes
actor's repeat_primitive=False
, window.snapshot
wasn't detecting colors while using primitive arrows.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the update. See below for additional comments.
scene.add(cone_actor1) | ||
scene.add(cone_actor2) | ||
|
||
interactive = True |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
False
instead
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
if interactive: | ||
window.show(scene, size=(600, 600)) | ||
|
||
window.record(scene, out_path='viz_markers.png', size=(600, 600)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why viz_markers
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrote that by mistake, Modified to viz_cone
.
fury/actor.py
Outdated
colors=colors, active_scalars=heights, | ||
source=src, vertices=vertices, faces=faces) | ||
return cone_actor | ||
else: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
else
not needed
Thank you @xtanion for this |
Resolves issue #529