mix
Blends two rectified contours by applying a blend function to their segments.
This method takes two RectifiedContour
instances and a blend function to produce a ShapeContour
that smoothly interpolates between the two contours. The blending is performed by applying the blend function at specific parameter values for each segment of the contours.
Return
a ShapeContour
that is the result of blending this contour with the other contour using the provided blend function
Parameters
the other RectifiedContour
to blend with
a function determining the blend factor for the segments as a function of rectified parameter space
Produces a blended 3D path by mixing two rectified paths using a custom blending function.
This function combines segments from the current RectifiedPath3D
instance with segments from another specified RectifiedPath3D
instance. Each segment is blended based on a provided blending function that accepts a normalized parameter and returns a blend weight. The resultant path retains characteristics such as closedness if both input paths are closed.
Return
a Path3D
representing the blended result of the two input paths
Parameters
the other RectifiedPath3D
to be blended with the current path
a function that provides blending weights based on a normalized parameter (t-value)
Blends the properties of two Segment2D
instances based on the provided weights for each control point and the corner property.
The resulting Segment2D
is computed by interpolating between the corresponding properties of this
segment and the other
segment, with specific weights for start, control points, end, and corner.
Return
a new Segment2D
that is the blended result
Parameters
the Segment2D
to blend with the current segment
the blend factor for the start points
the blend factor for the first control points
the blend factor for the second control points
the blend factor for the end points
Creates a new Segment3D
by blending the coordinates of two input segments using specified weights.
This function performs a weighted blending operation between the start, control, and end points of two cubic Segment3D
instances, resulting in a new blended segment.
Return
a new Segment3D
that represents the blended result
Parameters
the other Segment3D
to blend with
the blending weight for the starting point of the segment
the blending weight for the first control point of the segment
the blending weight for the second control point of the segment
the blending weight for the ending point of the segment
Mix between two ShapeContour instances
Parameters
other ShapeContour to mix with
the blend factor between 0.0 and 1.0