[orx-mesh-generators] fix side generator configuration

This commit is contained in:
Edwin Jakobs
2020-08-13 15:38:04 +02:00
parent 6fc76daa13
commit 3b2a9de849
2 changed files with 40 additions and 6 deletions

View File

@@ -132,9 +132,21 @@ fun GeneratorBuffer.extrudeShape(
scale: Double = 1.0,
frontCap: Boolean = true,
backCap: Boolean = true,
distanceTolerance: Double = 0.5
sides: Boolean = true
) {
extrudeShape(baseTriangles, contours, -length / 2.0, length / 2.0, scale, scale, frontCap = frontCap, backCap = backCap, distanceTolerance = distanceTolerance, flipNormals = false, writer = this::write)
extrudeShape(
baseTriangles = baseTriangles,
contours = contours,
front = -length / 2.0,
back = length / 2.0,
frontScale = scale,
backScale = scale,
frontCap = frontCap,
backCap = backCap,
sides = sides,
flipNormals = false,
writer = this::write
)
}
fun GeneratorBuffer.extrudeShape(