Skip to content

Latest commit

 

History

History
79 lines (69 loc) · 2.24 KB

File metadata and controls

79 lines (69 loc) · 2.24 KB

ArcTo

Description

Procedure ArcTo creates an arc vertex with a point of intersection at the specified coordinate point.

The endpoints of the arc are tangent to the control segments which intersect at p. If a radius of 0 is passed as the parameter, the arc endpoints will be at the vertices preceding and following the arc spline vertex.

PROCEDURE ArcTo(
				pX,pY          : REAL;
				radiusDistance : REAL);
def vs.ArcTo(p, radiusDistance):
    return None

Parameters

Name Type Description
p REAL Coordinates of vertex.
radiusDistance REAL Radius of vertex arc.

Examples

==== VectorScript ====

BeginPoly;
LineTo(-1",2");
LineTo(-2 1/2",1/2");
CurveTo(-1 1/2",-1 1/2");
LineTo(1",-1/2");
ArcTo(1",1 1/2",1/2");
EndPoly;
{creates a polyline object}

==== Python ====

vs.BeginPoly()
vs.LineTo(-1,2)
vs.LineTo(-2*12 - 1/2,1/2)
vs.CurveTo(-1*12 - 1/2,-1*12 - 1/2)
vs.LineTo(1,-1/2)
vs.ArcTo(1,1*12 + 1/2,1/2)
vs.EndPoly()
#{creates a polyline object}

See Also

[AddPoint|AddPoint](AddPoint|AddPoint.md) [ArcTo|ArcTo](ArcTo|ArcTo.md) [BeginPoly|BeginPoly](BeginPoly|BeginPoly.md) [ClosePoly|ClosePoly](ClosePoly|ClosePoly.md) [CurveThrough|CurveThrough](CurveThrough|CurveThrough.md) [CurveTo|CurveTo](CurveTo|CurveTo.md) [DelVertex|DelVertex](DelVertex|DelVertex.md) [EndPoly|EndPoly](EndPoly|EndPoly.md) [GetHole|GetHole](GetHole|GetHole.md) [GetNumHoles|GetNumHoles](GetNumHoles|GetNumHoles.md) [GetPolylineVertex|GetPolylineVertex](GetPolylineVertex|GetPolylineVertex.md) [GetPolyPt|GetPolyPt](GetPolyPt|GetPolyPt.md) [GetVertexVisibility|GetVertexVisibility](GetVertexVisibility|GetVertexVisibility.md) [GetVertNum|GetVertNum](GetVertNum|GetVertNum.md) [InsertVertex|InsertVertex](InsertVertex|InsertVertex.md) [OpenPoly|OpenPoly](OpenPoly|OpenPoly.md) [Poly|Poly](Poly|Poly.md) [SetPolylineVertex|SetPolylineVertex](SetPolylineVertex|SetPolylineVertex.md) [SetPolyPt|SetPolyPt](SetPolyPt|SetPolyPt.md) [SetVertexVisibility|SetVertexVisibility](SetVertexVisibility|SetVertexVisibility.md) [Smooth|Smooth](Smooth|Smooth.md)

Version

Availability: from MiniCAD4.0

Category

  • Objects - Polys