Hole operations affect unrelated geometry above target surface
Opened this issue · 3 comments
MatthiasJ1 commented
MatthiasJ1 commented
Here is another example of attempting to create a hinged box (yes I know you could do this in such a way that would avoid this issue, but the IMO intuitive way of creating the tabs then adding a countersunk hole on the tabs does not work due to this issue)
with BuildPart() as p:
Box(50, 30, 30)
with BuildPart():
with Locations((0,-18,10)):
Box(50, 10, 10, align=(Align.CENTER, Align.MIN, Align.CENTER))
Cylinder(5, 50, rotation=(0,90,0))
Box(20, 30, 30, mode=SUBTRACT)
with Locations(((faces()|X)<X)[0::2]):
with Locations((0,3)):
CounterSinkHole(2, 4)
![Screenshot](https://private-user-images.githubusercontent.com/149267773/309061259-49dbc1c7-1299-42eb-a9e4-08ab47f85d4c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjU1MzU4ODMsIm5iZiI6MTcyNTUzNTU4MywicGF0aCI6Ii8xNDkyNjc3NzMvMzA5MDYxMjU5LTQ5ZGJjMWM3LTEyOTktNDJlYi1hOWU0LTA4YWI0N2Y4NWQ0Yy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwOTA1JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDkwNVQxMTI2MjNaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT04OGIyMzJjNmIxNzI4YjcxZmRjNDAwNTVlZTg5ODZjNWJmYmJmMzc4OTM2YzQ0YzkwMDJkZDY3NWVhMGMyN2ZmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.O7sIjEbTGyZU03gFmn9OLX2ynp7QBEMEgaWibEnnve4)
MatthiasJ1 commented
gumyr commented
This behavior is by design to simplify creating through holes and counter-sink/bore holes that are not perpendicular to the surface. The original behavior was as you describe but changed as a result of this issue: #4
Another parameter could be added to the hole objects to control this though.