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

Method makeThreePointArc

cadquery/occ_impl/shapes.py:2816–2830  ·  view source on GitHub ↗

Makes a three point arc through the provided points :param cls: :param v1: start vector :param v2: middle vector :param v3: end vector :return: an edge object through the three points

(cls, v1: VectorLike, v2: VectorLike, v3: VectorLike)

Source from the content-addressed store, hash-verified

2814
2815 @classmethod
2816 def makeThreePointArc(cls, v1: VectorLike, v2: VectorLike, v3: VectorLike) -> Edge:
2817 """
2818 Makes a three point arc through the provided points
2819
2820 :param cls:
2821 :param v1: start vector
2822 :param v2: middle vector
2823 :param v3: end vector
2824 :return: an edge object through the three points
2825 """
2826 circle_geom = GC_MakeArcOfCircle(
2827 Vector(v1).toPnt(), Vector(v2).toPnt(), Vector(v3).toPnt()
2828 ).Value()
2829
2830 return cls(BRepBuilderAPI_MakeEdge(circle_geom).Edge())
2831
2832 @classmethod
2833 def makeTangentArc(cls, v1: VectorLike, v2: VectorLike, v3: VectorLike) -> Edge:

Callers 6

slotMethod · 0.80
arcMethod · 0.80
solveMethod · 0.80
slot2DMethod · 0.80
threePointArcMethod · 0.80
testEdgeWireCloseMethod · 0.80

Calls 2

VectorClass · 0.85
toPntMethod · 0.80

Tested by 1

testEdgeWireCloseMethod · 0.64