extrudeShapeSteps

fun extrudeShapeSteps(shape: Shape, path: Path3D, stepCount: Int, up0: Vector3, contourDistanceTolerance: Double = 0.5, pathDistanceTolerance: Double = 0.5, steps: List<Vector3> = path.evenSteps(stepCount), frames: List<Matrix44> = path.posesAt(steps, up0), startCap: Boolean, endCap: Boolean, useFaceNormals: Boolean, writer: VertexWriter)(source)

Extrude a shape along a path specifying the number of steps.

Parameters

shape

the cross-section of the mesh

path

the 3D path

stepCount

the number of steps along the path

up0

the initial up-vector

contourDistanceTolerance

precision for calculating steps along shape. Lower tolerance results in higher precision.

pathDistanceTolerance

no longer used: the steps are at equal distances along path

steps

the resulting positions in the path

frames

a list of matrices holding the transformation matrices along the path

startCap

adds a start cap if set to true

endCap

adds an end cap if set to true

writer

the vertex writer function


fun TriangleMeshBuilder.extrudeShapeSteps(shape: Shape, path: Path3D, stepCount: Int, up0: Vector3, contourDistanceTolerance: Double = 0.5, pathDistanceTolerance: Double = 0.5, startCap: Boolean = true, endCap: Boolean = true, useFaceNormals: Boolean = false)(source)

Extrude a shape along a path specifying the number of steps.

Parameters

shape

the cross-section of the mesh

path

the 3D path

stepCount

the number of steps along the path

up0

the up-vector

contourDistanceTolerance

precision for calculating steps along shape. Lower tolerance results in higher precision.

pathDistanceTolerance

no longer used: the steps are at equal distances along path

startCap

adds a start cap if set to true

endCap

adds an end cap if set to true