extrudeShapeAdaptive

fun extrudeShapeAdaptive(shape: Shape, path: Path3D, up0: Vector3, contourDistanceTolerance: Double = 0.5, pathDistanceTolerance: Double = 0.5, steps: List<Vector3> = path.adaptivePositions(pathDistanceTolerance), frames: List<Matrix44> = steps.frames(up0), startCap: Boolean, endCap: Boolean, writer: VertexWriter)(source)

Extrude a shape along a path. The number of resulting steps along the path depends on the tolerance values.

Parameters

shape

the cross-section of the mesh

path

the 3D path

up0

the initial up-vector

contourDistanceTolerance

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

pathDistanceTolerance

precision for calculating steps along path. Lower tolerance results in higher precision and step count.

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.extrudeShapeAdaptive(shape: Shape, path: Path3D, up0: Vector3, contourDistanceTolerance: Double = 0.5, pathDistanceTolerance: Double = 0.5, startCap: Boolean = true, endCap: Boolean = true)(source)

Extrude a shape along a path. The number of resulting steps along the path depends on the tolerance values.

Parameters

shape

the cross-section of the mesh

path

the 3D path

up0

the initial up-vector

contourDistanceTolerance

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

pathDistanceTolerance

precision for calculating steps along path. Lower tolerance results in higher precision and step count.

startCap

adds a start cap if set to true

endCap

adds an end cap if set to true