[orx-mesh-generators] Comment extrude demos

Remove deprecated use of Random.
This commit is contained in:
Abe Pazos
2025-08-28 11:45:20 +02:00
parent c8e02bfb1c
commit a4079327dd
6 changed files with 73 additions and 14 deletions

View File

@@ -6,6 +6,7 @@ import org.openrndr.draw.shadeStyle
import org.openrndr.extra.camera.Orbital
import org.openrndr.extra.meshgenerators.buildTriangleMesh
import org.openrndr.extra.meshgenerators.extrudeContourAdaptive
import org.openrndr.extra.meshgenerators.extrudeContourSteps
import org.openrndr.math.Polar
import org.openrndr.math.Vector3
import org.openrndr.math.asDegrees
@@ -15,6 +16,19 @@ import org.openrndr.shape.Path3D
import kotlin.math.PI
import kotlin.math.exp
/**
* Demonstration creating two intersecting spirals
* using [buildTriangleMesh] and [extrudeContourAdaptive].
* This approach generates as many vertices as needed
* based on the provided tolerance.
*
* The result is a [org.openrndr.draw.VertexBuffer] which can be rendered with
* `drawer.vertexBuffer()`.
*
* The [Orbital] camera slowly rotates on its own while
* still being interactive.
* A minimal `shadeStyle` is used to simulate a directional light.
*/
fun main() = application {
configure {
width = 720