MCPcopy Index your code
hub / github.com/CadQuery/cadquery / thicken

Method thicken

cadquery/occ_impl/shapes.py:3768–3788  ·  view source on GitHub ↗

Return a thickened face

(self, thickness: float)

Source from the content-addressed store, hash-verified

3766 return adaptor.Plane()
3767
3768 def thicken(self, thickness: float) -> Solid:
3769 """
3770 Return a thickened face
3771 """
3772
3773 builder = BRepOffset_MakeOffset()
3774
3775 builder.Initialize(
3776 self.wrapped,
3777 thickness,
3778 1.0e-6,
3779 BRepOffset_Mode.BRepOffset_Skin,
3780 False,
3781 False,
3782 GeomAbs_Intersection,
3783 True,
3784 ) # The last True is important to make a solid
3785
3786 builder.MakeOffsetShape()
3787
3788 return Solid(builder.Shape())
3789
3790 @classmethod
3791 def constructOn(cls, f: Face, outer: Wire, *inner: Wire) -> Face:

Callers 1

interpPlateMethod · 0.80

Calls 2

SolidClass · 0.85
InitializeMethod · 0.80

Tested by

no test coverage detected