weldx.geometry.
Shape
Defines a shape in 2 dimensions.
Construct a shape.
segments – Single segment or list of segments
Methods
add_line_segments
Add line segments to the shape.
add_segments
Add segments to the shape.
apply_reflection
Apply a reflection at the given axis to the shape.
apply_reflection_across_line
Apply a reflection across a line.
apply_transformation
Apply a transformation to the shape.
apply_translation
Apply a translation to the shape.
interpolate
Interpolate 2 shapes.
linear_interpolation
Interpolate 2 shapes linearly.
rasterize
Create an array of points that describe the shapes contour.
reflect
Get a reflected copy of the shape.
reflect_across_line
Get a reflected copy across a line.
transform
Get a transformed copy of the shape.
translate
Get a translated copy of the shape.
Attributes
num_segments
Get the number of segments of the shape.
segments
Get the shape’s segments.