MCPcopy
hub / github.com/CadQuery/cadquery / fuse

Method fuse

cadquery/occ_impl/shapes.py:1428–1447  ·  view source on GitHub ↗

Fuse the positional arguments with this Shape. :param glue: Sets the glue option for the algorithm, which allows increasing performance of the intersection of the input shapes :param tol: Fuzzy mode tolerance

(
        self, *toFuse: Shape, glue: bool = False, tol: float | None = None
    )

Source from the content-addressed store, hash-verified

1426 return self._bool_op((self,), toCut, cut_op)
1427
1428 def fuse(
1429 self, *toFuse: Shape, glue: bool = False, tol: float | None = None
1430 ) -> Shape:
1431 """
1432 Fuse the positional arguments with this Shape.
1433
1434 :param glue: Sets the glue option for the algorithm, which allows
1435 increasing performance of the intersection of the input shapes
1436 :param tol: Fuzzy mode tolerance
1437 """
1438
1439 fuse_op = BRepAlgoAPI_Fuse()
1440 if glue:
1441 fuse_op.SetGlue(BOPAlgo_GlueEnum.BOPAlgo_GlueShift)
1442 if tol:
1443 fuse_op.SetFuzzyValue(tol)
1444
1445 rv = self._bool_op((self,), toFuse, fuse_op)
1446
1447 return rv
1448
1449 def intersect(self, *toIntersect: Shape, tol: float | None = None) -> Shape:
1450 """

Callers 11

eachMethod · 0.45
cboreHoleMethod · 0.45
cskHoleMethod · 0.45
twistExtrudeMethod · 0.45
_fuseWithBaseMethod · 0.45
combineMethod · 0.45
unionMethod · 0.45
_extrudeMethod · 0.45
textFunction · 0.45
toFusedCAFFunction · 0.45
importCompoundMethod · 0.45

Calls 1

_bool_opMethod · 0.95

Tested by 1

importCompoundMethod · 0.36