-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add hide! utility function. #98
Conversation
src/abstract_visualizer.jl
Outdated
setobject!(vis::AbstractVisualizer, geom::GeometryLike) = setobject!(vis, Object(geom)) | ||
setobject!(vis::AbstractVisualizer, geom::GeometryLike, material::AbstractMaterial) = setobject!(vis, Object(geom, material)) | ||
hide!(vis::AbstractVisualizer) = settransform!(vis, LinearMap(UniformScaling(false))) |
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.
I think setprop!(vis, "visible", false)
might be a more idiomatic way to do this. What do you think?
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.
Yes. I thought you might have a suggestion like that, but I didn't know the right API call. I'll change it.
Codecov Report
@@ Coverage Diff @@
## master #98 +/- ##
==========================================
+ Coverage 73.2% 73.29% +0.08%
==========================================
Files 12 12
Lines 321 322 +1
==========================================
+ Hits 235 236 +1
Misses 86 86
Continue to review full report at Codecov.
|
Done, but I guess this should now be |
Done. |
Thank you! |
On top of #96.