Summary
Arc methods: Arc - is a class. center_from_segment_points - Arc center from three segment points. from_points - Create an Arc from Points. from_segment_points - Create an Arc from three points on it.
PROPERTIES
-
Arc/angle_end is a property.
-
Arc/angle_span is a property.
-
Arc/angle_start is a property.
-
Arc/radius is a property.
-
type - Type (geo.line or geo.arc) Help for Arc.type is inherited from superclass CURVE
-
Arc/xcenter is a property.
Methods
Class methods are listed below. Inherited methods are not included.
* Arc/Arc is a constructor.
this = Arc(pstart, pcenter, pend)
* center_from_segment_points Arc center from three segment points.
P_center = center_from_segment_points(Pstart, Pmid, Pend)
* Arc/curve_length is a function.
l = curve_length(this)
* from_points Create an Arc from Points.
this = from_points(pstart, pcenter, pend) either creates a new Arc, or returns an existing Arc if found.
this = from_points(pstart, pcenter, pend, false) returns an existing Arc, or throws an error if not found.
this = from_points(pstart, pend, whatever) returns the first existing arc connecting points pstart and pend, or throws an error if not found.
[this, direction] = from_points(…) also returns the direction of the Arc: +1 if this.pstart equals the given pstart, -1 otherwise.
* from_segment_points Create an Arc from three points on it.
this = from_segment_points(Pstart, Pmid, Pend) creates a new Arc between Pstart and Pend, so that it goes over Pmid. A new Point is created for the Arc center.
IMPORTANT NOTE: The function returns a single Arc, between Pstart and Pend. Thus, the Point Pmid does not “belong” to the resulting Arc, and therefore must not be used as start- or end-Point in any other Curve.
Consider creating two Arcs, between Pstart-Pmid and Pmid-Pend if this is necessary.