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

Method addHole

cadquery/occ_impl/shapes.py:3931–3941  ·  view source on GitHub ↗

Add one or more holes.

(self, *inner: Wire | Edge)

Source from the content-addressed store, hash-verified

3929 return self.__class__(rv)
3930
3931 def addHole(self, *inner: Wire | Edge) -> Self:
3932 """
3933 Add one or more holes.
3934 """
3935
3936 bldr = BRepBuilderAPI_MakeFace(self.wrapped)
3937
3938 for w in inner:
3939 bldr.Add(TopoDS.Wire(w.wrapped if isinstance(w, Wire) else wire(w).wrapped))
3940
3941 return self.__class__(bldr.Face()).fix()
3942
3943
3944class Shell(Shape):

Callers 1

test_addHoleFunction · 0.80

Calls 2

wireFunction · 0.85
fixMethod · 0.80

Tested by 1

test_addHoleFunction · 0.64