weldx.geometry.Shape.interpolate#

classmethod Shape.interpolate(shape_a, shape_b, weight, interpolation_schemes)#

Interpolate 2 shapes.

Parameters:
  • shape_a (Shape) – First shape

  • shape_b (Shape) – Second shape

  • weight (float) – Weighting factor in the range [0 .. 1] where 0 is shape a and 1 is shape b

  • interpolation_schemes – List of interpolation schemes for each segment of the shape.

Returns:

Interpolated shape

Return type:

Shape