Skip to content

Arc

An arc defined by a plane, start point, mid point and end point.

This class represents a circular arc in 3D space, defined by three points and a plane. The arc is a portion of a circle that lies on the specified plane.

Attributes:

Name Type Description
plane Plane

The plane on which the arc lies

startPoint Point

The starting point of the arc

midPoint Point

A point on the arc between the start and end points

endPoint Point

The ending point of the arc.

Example
from specklepy.objects.geometry.plane import Plane
from specklepy.objects.geometry.point import Point
plane = Plane(origin=Point(0, 0, 0), normal=Point(0, 0, 1))
start = Point(1, 0, 0)
mid = Point(0.7071, 0.7071, 0)
end = Point(0, 1, 0)
arc = Arc(plane=plane, startPoint=start, midPoint=mid, endPoint=end)

plane instance-attribute

plane: Plane

startPoint instance-attribute

startPoint: Point

midPoint instance-attribute

midPoint: Point

endPoint instance-attribute

endPoint: Point

radius property

radius: float

Calculates the radius of the arc.

Returns:

Type Description
float

The radius of the arc, as the distance from the start point to the origin.

length property

length: float

Calculates the length of the arc.

Returns:

Type Description
float

The length of the arc.

measure property

measure: float

Calculates the angular measure of the arc in radians.

Returns:

Type Description
float

The angular measure of the arc in radians.