Path3D

class Path3D(segments: List<Segment3D>, closed: Boolean)

Types

Companion
Link copied to clipboard
common
object Companion

Functions

adaptivePositions
Link copied to clipboard
common
fun adaptivePositions(distanceTolerance: Double = 0.5): List<Vector3>
equals
Link copied to clipboard
common
open operator override fun equals(other: Any?): Boolean
equidistantPositions
Link copied to clipboard
common
fun equidistantPositions(pointCount: Int): List<Vector3>
hashCode
Link copied to clipboard
common
open override fun hashCode(): Int
map
Link copied to clipboard
common
fun map(closed: Boolean = this.closed, mapper: (Segment3D) -> Segment3D): Path3D
on
Link copied to clipboard
common
fun on(point: Vector3, error: Double = 5.0): Double?

Checks if a give point lies on the contour

plus
Link copied to clipboard
common
operator fun plus(other: Path3D): Path3D
position
Link copied to clipboard
common
fun position(ut: Double): Vector3
project
Link copied to clipboard
common
fun project(point: Vector3): PathProjection3D

Project a point on the contour

sampleEquidistant
Link copied to clipboard
common
fun sampleEquidistant(pointCount: Int): Path3D

Sample the shape contour into line segments

sampleLinear
Link copied to clipboard
common
fun sampleLinear(distanceTolerance: Double = 0.5): Path3D

Adaptively sample the contour into line segments while still approximating the original contour

sub
Link copied to clipboard
common
fun sub(t0: Double, t1: Double): Path3D

Sample a sub contour

transform
Link copied to clipboard
common
fun transform(transform: Matrix44): Path3D

Properties

closed
Link copied to clipboard
common
val closed: Boolean
exploded
Link copied to clipboard
common
val exploded: List<Path3D>
length
Link copied to clipboard
common
val length: Double
reversed
Link copied to clipboard
common
val reversed: Path3D
segments
Link copied to clipboard
common
val segments: List<Segment3D>