Open jdegenstein opened 4 months ago
Nice illustration. One of the things that makes the until
extrudes challenging is that it's very likely that the extrusion will not encounter a single Face but multiple Faces on a surface. IIRC the CadQuery version only handles a single Face which makes it not very useful. So, when a user specifies a Face (which is a Python object not a OCCT topographical object) the OCCT TopoDS_Face would need to be found and that would have to be a key to finding the whole surface.
A generalized solution isn't impossible but would be challenging. The current implementation could use some hardening as it's possible to break it when Faces are perpendicular to the direction of extrusion and there could be other issues - this is a higher priority to me.
Currently, extrude-until accepts the Until enum which has 4 values --
(Until.NEXT, Until.LAST, Until.PREVIOUS, Until.FIRST)
. See the below example for when having the ability to e.g. target all 8 faces would be valuable. I wonder if extending thetarget
parameter to accept faces would be a reasonable approach? I have not investigated that idea yet. The great thing about the current behavior is that it is easy to use, so adding this functionality would ideally not compromise ease of use much.