Path3D

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

Constructors

Link copied to clipboard
fun Path3D(segments: List<Segment3D>, closed: Boolean)

Types

Link copied to clipboard
object Companion

Functions

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

Checks if a give point lies on the contour

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

Project a point on the contour

Link copied to clipboard
fun sampleEquidistant(pointCount: Int, distanceTolerance: Double): Path3D

Sample the shape contour into line segments

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

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

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

Sample a sub contour

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

Properties

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

Sources

Link copied to clipboard