-
Notifications
You must be signed in to change notification settings - Fork 108
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
Fix VolMesh delete cell #1406
Fix VolMesh delete cell #1406
Conversation
@gonzalocasas needs a test and docs but perhaps you can already give this a try... |
from compas.datastructures import VolMesh
volmesh = VolMesh.from_meshgrid(9, 9, 9, 2, 1, 1)
print(volmesh)
print(volmesh._plane)
volmesh.delete_cell(0)
print(volmesh)
print(volmesh._plane) |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1406 +/- ##
==========================================
+ Coverage 60.71% 60.82% +0.11%
==========================================
Files 207 207
Lines 22268 22270 +2
==========================================
+ Hits 13519 13545 +26
+ Misses 8749 8725 -24 ☔ View full report in Codecov by Sentry. |
Awesome, will review later today! |
I tried this, but it still fails with a from compas.datastructures import VolMesh
volmesh = VolMesh.from_meshgrid()
volmesh.delete_cell(0) |
weird, for me that works perfectly from compas.datastructures import VolMesh
volmesh = VolMesh.from_meshgrid()
print(volmesh)
volmesh.delete_cell(0)
print(volmesh) produces
|
@gonzalocasas please recheck because this is supposed to be fixed |
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.
LGTM! Thanks!!
What type of change is this?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creating the PR. If you're unsure about any of them, don't hesitate to ask. We're here to help! This is simply a reminder of what we are going to look for before merging your code.CHANGELOG.md
file in theUnreleased
section under the most fitting heading (e.g.Added
,Changed
,Removed
).invoke test
).invoke lint
).compas.datastructures.Mesh
.