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
CSG subtract failing test case #3755
Comments
- Brush::subtract now ignores any brushes that fail to create, previously these would block the csgSubtract operation - in csgHollow, if one brush is too small to hollow, don't prevent the whole operation Fixes #3755
Test case can be reduced further to just the brush that sticks out, and the box (subtrahend). To recap, the I'm looking in to why the subtraction was producing these 2 empty brushes in the first place. Loading them in blender, they appear to be two faces of the minuend. |
Ok, https://github.com/TrenchBroom/TrenchBroom/blob/master/common/src/Model/Polyhedron_CSG.h#L85 is the source of the problem, if I remove that I just get the expected 1 polyhedron from |
- Brush::subtract now ignores any brushes that fail to create, previously these would block the csgSubtract operation - in csgHollow, if one brush is too small to hollow, don't prevent the whole operation Fixes #3755
- Brush::subtract now returns brushes that fail to create, previously these would block the csgSubtract operation - in csgHollow, if one brush is too small to hollow, don't prevent the whole operation Fixes #3755
System Information
Windows 10.
Expected Behavior
Should produce 1 brush: the bottom part of the "elbow" that sticks out below the subtrahend.
Steps to Reproduce
open map: csgSubtractFailure.map.txt
select all and Ctrl+U to jump to the brushes
select the large axis aligned box (seen here with face rendered disabled, for clarity).
Ctrl+K to CSG subtract
The text was updated successfully, but these errors were encountered: