Arc
- class Arc(center: ndarray[3], start: ndarray[3], midpoint: ndarray[3], end: ndarray[3], attributes: ElementAttributes)
An
Arcrepresents a circular arc in space.Attributes
The angle spanned by this arc.
The center of this arc.
The radius of this arc.
The angle of the start point on this arc's carrier.
The angle of the midpoint on this arc's carrier.
The angle of the end point on this arc's carrier.
(start point, end point) of this arc.
The
Carrierunderlying this element.The
ElementAttributesof this element.Methods
Returns the boolean difference between this element and another.
Returns
Trueif this element is coincident with another.Returns
Trueifpointis coincident to this element.Returns
Trueif this element is equivalent to another.Returns the
Arcspecified by the givenArcCarrierand the given range.Returns
Trueif this element is embedded in another.Transform this
Arcby a givenTransformation.- __le__(other)
Calls
is_embedded_in().
- __rmatmul__(transformation: Transformation) T_co
Computes
transformable.transform(t)when performingt @ transformablefor aTransformationtandTransformabletransformable.
- __sub__(other)
Calls
boolean_subtract().
- boolean_subtract(other: Arc) List[Arc]
Returns the boolean difference between this element and another.
- coincident_with(other: Arc) bool
Returns
Trueif this element is coincident with another. This occurs when the result of maximizing the two elements returns an element that both are embedded in (seeis_embedded_in()).Specifically, the two elements must be coequal and at least one part of the boundary of one element must be contained within the boundary of the other.
Fuzzy with tolerance.
- contains_point(point: ArrayLike) bool
Returns
Trueifpointis coincident to this element. Fuzzy with tolerance.
- equivalent_to(other: Arc) bool
Returns
Trueif this element is equivalent to another. They must be coequal and have equivalent boundaries. Fuzzy with tolerance.
- classmethod from_carrier_and_range(carrier: ArcCarrier, arc_range: Tuple[float, float], attributes: ElementAttributes) Arc
Returns the
Arcspecified by the givenArcCarrierand the given range. This range is equivalent to(arc.start_angle, arc.end_angle).
- is_embedded_in(other: Arc) bool
Returns
Trueif this element is embedded in another. This occurs when the result of maximizing the two elements returns an element equivalent to the other.Specifically, the two elements must be coequal and the boundary of this element must be entirely contained within the boundary of the other.
Fuzzy with tolerance.
- transform(transformation: Transformation) Arc
Transform this
Arcby a givenTransformation.
- property angle_span
The angle spanned by this arc.
- attributes
The
ElementAttributesof this element. These must be equatable and hashable and are made to be immutable upon carrier initialization.
- end_angle
The angle of the end point on this arc’s carrier.
- midpoint_angle
The angle of the midpoint on this arc’s carrier.
- property radius
The radius of this arc.
- start_angle
The angle of the start point on this arc’s carrier.