weldx.ArcSegment

class weldx.ArcSegment(points, arc_winding_ccw=True)

Arc segment.

Construct arc segment.

Parameters
  • points (Quantity) – 2x3 matrix of points. The first column is the starting point, the second column the end point and the last the center point.

  • arc_winding_ccw (bool) – Specifies if the arcs winding order is counter-clockwise

Returns

Return type

ArcSegment

Methods

apply_transformation

Apply a transformation to the segment.

apply_translation

Apply a translation to the segment.

construct_with_points

Construct an arc segment with three points (start, end, center).

construct_with_radius

Construct an arc segment with a radius and the start and end points.

linear_interpolation

Interpolate two arc segments linearly.

rasterize

Create an array of points that describe the segments contour.

transform

Get a transformed copy of the segment.

translate

Get a translated copy of the segment.

Attributes

arc_angle

Get the arc angle.

arc_length

Get the arc length.

arc_winding_ccw

Get True if the winding order is counter-clockwise.

point_center

Get the center point of the segment.

point_end

Get the end point of the segment.

point_start

Get the starting point of the segment.

points

Get the segments points in form of a 2x3 matrix.

radius

Get the radius.