Fuse the provided object with the base solid, if one can be found. :param obj: :return: a new object that represents the result of combining the base object with obj, or obj if one could not be found
(self: T, obj: Shape)
| 3246 | return newS |
| 3247 | |
| 3248 | def _fuseWithBase(self: T, obj: Shape) -> T: |
| 3249 | """ |
| 3250 | Fuse the provided object with the base solid, if one can be found. |
| 3251 | |
| 3252 | :param obj: |
| 3253 | :return: a new object that represents the result of combining the base object with obj, |
| 3254 | or obj if one could not be found |
| 3255 | """ |
| 3256 | baseSolid = self._findType((Solid,), searchStack=True, searchParents=True) |
| 3257 | r = obj |
| 3258 | if baseSolid is not None: |
| 3259 | r = baseSolid.fuse(obj) |
| 3260 | elif isinstance(obj, Compound): |
| 3261 | r = obj.fuse() |
| 3262 | return self.newObject([r]) |
| 3263 | |
| 3264 | def _cutFromBase(self: T, obj: Shape) -> T: |
| 3265 | """ |
no test coverage detected