-
Notifications
You must be signed in to change notification settings - Fork 113
Add make_solid method to RhinoBrep to cap planar holes #1446
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
Conversation
| """ | ||
| self._brep.Flip() | ||
|
|
||
| def make_solid(self): |
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'm wondering if we shouldn't call this just cap_holes.
Wasn't able to fully understand but after having a look at the OCC implementation of make_solid() I'm not convinced these do the same thing.
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.
make_solid in compas_occ indeed does something 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.
I came to say the same thing. Is there another occ function that caps planar holes?
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 currently isn't a method that closes a hole in an existing brep, but this could be added...
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.
@chenkasirer @tomvanmele @obucklin I now see my misconception, so thanks for pointing it out. I’ve renamed the method to cap_planar_holes() in compas_rhino.RhinoBrep and added it to compas.geometry.Brep.
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!
What type of change is this?
Adds
make_solid()method toRhinoBrepfor converting a brep to a solid if it is a strip in the Rhino backend.Checklist
Put an
xin 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.mdfile in theUnreleasedsection under the most fitting heading (e.g.Added,Changed,Removed).invoke test).invoke lint).compas.datastructures.Mesh.