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

Method chamfer

cadquery/sketch.py:621–632  ·  view source on GitHub ↗

Add a chamfer based on current selection.

(self: T, d: Real)

Source from the content-addressed store, hash-verified

619 return self
620
621 def chamfer(self: T, d: Real) -> T:
622 """
623 Add a chamfer based on current selection.
624 """
625
626 f2v = self._matchFacesToVertices()
627
628 self._faces = Compound.makeCompound(
629 k.chamfer2D(d, v) if v else k for k, v in f2v.items()
630 )
631
632 return self
633
634 def clean(self: T) -> T:
635 """

Callers

nothing calls this directly

Calls 3

_matchFacesToVerticesMethod · 0.95
makeCompoundMethod · 0.80
chamfer2DMethod · 0.45

Tested by

no test coverage detected