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

Method arc

cadquery/sketch.py:855–869  ·  view source on GitHub ↗

Construct an arc.

(
        self: T,
        p1: Point,
        p2: Point,
        p3: Point,
        tag: Optional[str] = None,
        forConstruction: bool = False,
    )

Source from the content-addressed store, hash-verified

853
854 @multimethod
855 def arc(
856 self: T,
857 p1: Point,
858 p2: Point,
859 p3: Point,
860 tag: Optional[str] = None,
861 forConstruction: bool = False,
862 ) -> T:
863 """
864 Construct an arc.
865 """
866
867 val = Edge.makeThreePointArc(Vector(p1), Vector(p2), Vector(p3))
868
869 return self.edge(val, tag, forConstruction)
870
871 @arc.register
872 def arc(

Callers 6

test_distributeFunction · 0.80
test_edge_interfaceFunction · 0.80
test_assembleFunction · 0.80
test_constraint_solverFunction · 0.80
test_mixed_closeFunction · 0.80
fxFunction · 0.80

Calls 5

edgeMethod · 0.95
_endPointMethod · 0.95
VectorClass · 0.85
makeThreePointArcMethod · 0.80
makeCircleMethod · 0.45

Tested by 5

test_distributeFunction · 0.64
test_edge_interfaceFunction · 0.64
test_assembleFunction · 0.64
test_constraint_solverFunction · 0.64
test_mixed_closeFunction · 0.64