openrndr / org.openrndr.shape / Path3DBuilder

Path3DBuilder

class Path3DBuilder (source)

Constructors

<init>

Path3DBuilder()

Properties

anchor

var anchor: Vector3

cursor

var cursor: Vector3

segments

val segments: MutableList<Segment3D>

Functions

close

fun close(): Unit

continueTo

fun continueTo(end: Vector3, tangentScale: Double = 1.0): Unit
fun continueTo(x: Double, y: Double, z: Double, tangentScale: Double = 1.0): Unit
fun continueTo(control: Vector3, end: Vector3, tangentScale: Double = 1.0): Unit
fun continueTo(cx: Double, cy: Double, cz: Double, x: Double, y: Double, z: Double, tangentScale: Double = 1.0): Unit

curveTo

fun curveTo(control: Vector3, position: Vector3): Unit
fun curveTo(cx: Double, cy: Double, cz: Double, x: Double, y: Double, z: Double): Unit
fun curveTo(control0: Vector3, control1: Vector3, position: Vector3): Unit
fun curveTo(c0x: Double, c0y: Double, c0z: Double, c1x: Double, c1y: Double, c1z: Double, x: Double, y: Double, z: Double): Unit

lineTo

fun lineTo(position: Vector3): Unit
fun lineTo(x: Double, y: Double, z: Double): Unit

moveOrCurveTo

fun moveOrCurveTo(control: Vector3, position: Vector3): Unit
fun moveOrCurveTo(cx: Double, cy: Double, cz: Double, x: Double, y: Double, z: Double): Unit
fun moveOrCurveTo(control0: Vector3, control1: Vector3, position: Vector3): Unit
fun moveOrCurveTo(c0x: Double, c0y: Double, c0z: Double, c1x: Double, c1y: Double, c1z: Double, x: Double, y: Double, z: Double): Unit

moveOrLineTo

fun moveOrLineTo(position: Vector3): Unit
fun moveOrLineTo(x: Double, y: Double, z: Double): Unit

moveTo

fun moveTo(position: Vector3): Unit
fun moveTo(x: Double, y: Double, z: Double): Unit

reverse

fun reverse(): Unit