-
Notifications
You must be signed in to change notification settings - Fork 441
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
Document that default capping changed for extrude* in 0.32 #2339
Conversation
Codecov Report
@@ Coverage Diff @@
## main #2339 +/- ##
=======================================
Coverage 93.51% 93.51%
=======================================
Files 74 74
Lines 15709 15709
=======================================
Hits 14690 14690
Misses 1019 1019 |
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.
Thanks @tkoyama010 🎉 |
I'm actually wondering if we should revert this? IMO, we should try to stick with the defaults VTK has chosen, unless there is a compelling reason not to (which is the case in many places in PyVista) - I want to make sure this change was intentional |
I would guess that the difference is unintentional, only @akaszynski can tell for sure. But I would argue that as of 0.32 (September 2021, so for 6 months) this is our public API, so reverting it is not trivial either. |
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.
Approving this change as this has been in the public API for a while and this note is needed. I would like to defer to @adeak and @akaszynski on whether we should keep this parameter as is or revert it in a follow up PR to make sure the default value of this parameter was intentionally chosen. Perhaps there's a cost of having this default to False
that is worse than the cost of changing our API? IMO, the cost of diverging from VTK's defaults is high in the long term
I think that agreement, whenever possible, with VTK is ideal. Let's change the default in |
#1486 exposed the
capping
parameter ofextrude()
andextrude_rotate()
. I just noticed that theFalse
default for these kwargs is a change compared to the original VTK default of1
(i.e.True
). This PR just adds a versionchanged tag making this clear.