extrudeContourStepsScaled
Extrude a contour along a path specifying the number of steps. The scale argument can be used to make variable width shapes. For example scale = { t: Double -> 0.5 - 0.5 * cos(t * 2 * PI) }
produces an extruded shape that begins and ends with hairline thickness.
Parameters
the cross-section of the mesh
the 3D path
the number of steps along the path
the initial up-vector
precision for calculating steps along contour. Lower tolerance results in higher precision.
precision for calculating steps along path. Lower tolerance results in higher precision.
the resulting positions in the path
a list of matrices holding the transformation matrices along the path
adds a start cap if set to true
adds an end cap if set to true
A function that takes a curve t
value and returns a scaling factor for contour at that point.
the vertex writer function
Extrude a contour along a path specifying the number of steps. The scale argument can be used to make variable width shapes. For example scale = { t: Double -> 0.5 - 0.5 * cos(t * 2 * PI) }
produces an extruded shape that begins and ends with hairline thickness.
Parameters
the cross-section of the mesh
the 3D path
the number of steps along the path
the initial up-vector
precision for calculating steps along contour. Lower tolerance results in higher precision.
precision for calculating steps along
A function that converts t
into a radius path. Lower tolerance results in higher precision.