You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
added combine cut for twistextrude sweep.
Didn't added it for extrude as it already as cutBlind and the option to extrude until a given face is combine by default and would need a little bit more change to handle combine=cut (but its still possible)
Copy file name to clipboardExpand all lines: cadquery/cq.py
+11-7Lines changed: 11 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -2951,7 +2951,7 @@ def twistExtrude(
2951
2951
self: T,
2952
2952
distance: float,
2953
2953
angleDegrees: float,
2954
-
combine: bool=True,
2954
+
combine: Union[bool, str]=True,
2955
2955
clean: bool=True,
2956
2956
) ->T:
2957
2957
"""
@@ -2968,7 +2968,7 @@ def twistExtrude(
2968
2968
2969
2969
:param distance: the distance to extrude normal to the workplane
2970
2970
:param angle: angle (in degrees) to rotate through the extrusion
2971
-
:param boolean combine: True to combine the resulting solid with parent solids if found.
2971
+
:param boolean or string combine: True to combine the resulting solid with parent solids if found, "cut" to remove the resulting solid with the parent solids if found.
2972
2972
:param boolean clean: call :py:meth:`clean` afterwards to have a clean shape
2973
2973
:return: a CQ object with the resulting solid selected.
:param path: A wire along which the pending wires will be swept
3159
3161
:param boolean multiSection: False to create multiple swept from wires on the chain along path. True to create only one solid swept along path with shape following the list of wires on the chain
3160
-
:param boolean combine: True to combine the resulting solid with parent solids if found.
3162
+
:param boolean or string combine: True to combine the resulting solid with parent solids if found, "cut" to remove the resulting solid with the parent solids if found.
3161
3163
:param boolean clean: call :py:meth:`clean` afterwards to have a clean shape
3162
3164
:param transition: handling of profile orientation at C1 path discontinuities. Possible values are {'transformed','round', 'right'} (default: 'right').
3163
3165
:param normal: optional fixed normal for extrusion
@@ -3187,7 +3189,9 @@ def sweep(
3187
3189
) # returns a Solid (or a compound if there were multiple)
0 commit comments