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.
no longer used: the steps are at equal distances along path
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 the part of the steps, from 0 at the first to 1 at the last, and returns a scaling factor for contour at that step. Where it is 0 the cross-section is a point, and a cap there is left out.
true for the normals of the faces, false for smooth normals that follow the changes of scale
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.