[orx-shapes] Add demo descriptions

This commit is contained in:
Abe Pazos
2025-10-29 09:52:31 +01:00
parent c3bb7d415f
commit 8990a6cf64
11 changed files with 99 additions and 0 deletions

View File

@@ -7,8 +7,17 @@ import org.openrndr.extra.camera.Orbital
import org.openrndr.extra.shapes.path3d.projectToContour
import org.openrndr.math.Spherical
import org.openrndr.math.Vector3
import org.openrndr.shape.ShapeContour
import org.openrndr.shape.path3D
/**
* Demonstrates how to convert a 3D path as seen by an [Orbital] camera to a 2D [ShapeContour].
*
* Among other uses, this can be useful when working with pen plotters,
* to export a 3D path to an SVG file, or to apply 2D contour post-processing with
* [org.openrndr.extra.shapes.adjust.adjustContour].
*
*/
fun main() = application {
program {
val path = path3D {