Use all un-extruded wires in the parent chain to create a swept solid. :param path: A wire along which the pending wires will be swept :param multiSection: False to create multiple swept from wires on the chain along path. True to create only one solid swept alo
(
self: T,
path: Union["Workplane", Wire, Edge],
multisection: bool = False,
sweepAlongWires: Optional[bool] = None,
makeSolid: bool = True,
isFrenet: bool = False,
combine: CombineMode = True,
clean: bool = True,
transition: Literal["right", "round", "transformed"] = "right",
normal: Optional[VectorLike] = None,
auxSpine: Optional["Workplane"] = None,
)
| 3156 | return self._combineWithBase(r, combine, clean) |
| 3157 | |
| 3158 | def sweep( |
| 3159 | self: T, |
| 3160 | path: Union["Workplane", Wire, Edge], |
| 3161 | multisection: bool = False, |
| 3162 | sweepAlongWires: Optional[bool] = None, |
| 3163 | makeSolid: bool = True, |
| 3164 | isFrenet: bool = False, |
| 3165 | combine: CombineMode = True, |
| 3166 | clean: bool = True, |
| 3167 | transition: Literal["right", "round", "transformed"] = "right", |
| 3168 | normal: Optional[VectorLike] = None, |
| 3169 | auxSpine: Optional["Workplane"] = None, |
| 3170 | ) -> T: |
| 3171 | """ |
| 3172 | Use all un-extruded wires in the parent chain to create a swept solid. |
| 3173 | |
| 3174 | :param path: A wire along which the pending wires will be swept |
| 3175 | :param multiSection: False to create multiple swept from wires on the chain along path. |
| 3176 | True to create only one solid swept along path with shape following the list of wires on the chain |
| 3177 | :param combine: True or "a" to combine the resulting solid with parent solids if found, |
| 3178 | "cut" or "s" to remove the resulting solid from the parent solids if found. |
| 3179 | False to keep the resulting solid separated from the parent solids. |
| 3180 | :param clean: call :meth:`clean` afterwards to have a clean shape |
| 3181 | :param transition: handling of profile orientation at C1 path discontinuities. Possible values are {'transformed','round', 'right'} (default: 'right'). |
| 3182 | :param normal: optional fixed normal for extrusion |
| 3183 | :param auxSpine: a wire defining the binormal along the extrusion path |
| 3184 | :return: a CQ object with the resulting solid selected. |
| 3185 | """ |
| 3186 | |
| 3187 | if not sweepAlongWires is None: |
| 3188 | multisection = sweepAlongWires |
| 3189 | |
| 3190 | from warnings import warn |
| 3191 | |
| 3192 | warn( |
| 3193 | "sweepAlongWires keyword argument is deprecated and will " |
| 3194 | "be removed in the next version; use multisection instead", |
| 3195 | DeprecationWarning, |
| 3196 | ) |
| 3197 | |
| 3198 | r = self._sweep( |
| 3199 | path.wire() if isinstance(path, Workplane) else path, |
| 3200 | multisection, |
| 3201 | makeSolid, |
| 3202 | isFrenet, |
| 3203 | transition, |
| 3204 | normal, |
| 3205 | auxSpine, |
| 3206 | ) # returns a Solid (or a compound if there were multiple) |
| 3207 | |
| 3208 | return self._combineWithBase(r, combine, clean) |
| 3209 | |
| 3210 | def _combineWithBase( |
| 3211 | self: T, |