BezierPatch3D

class BezierPatch3D(points: List<List<Vector3>>, colors: List<List<ColorRGBa>> = emptyList()) : BezierPatch3DBase<ColorRGBa> , GeometricPrimitive3D(source)

Constructors

Link copied to clipboard
constructor(points: List<List<Vector3>>, colors: List<List<ColorRGBa>> = emptyList())

Properties

Link copied to clipboard
val colors: List<List<ColorRGBa>>

A 4x4 grid of color data corresponding to the control points. This parameter is optional and defaults to an empty list.

Link copied to clipboard
val path: Path3D
Link copied to clipboard
val points: List<List<Vector3>>

A 4x4 grid of control points that define the shape of the Bezier patch.

Link copied to clipboard

Return a transposed version of the bezier path by transposing the points matrix

Functions

Link copied to clipboard
operator fun div(scale: Double): BezierPatch3DBase<ColorRGBa>
Link copied to clipboard
fun gradient(u: Double, v: Double): Vector3

Return a gradient vector on the patch by using its u,v parameterization

Link copied to clipboard
fun horizontal(v: Double): Path3D
Link copied to clipboard
operator fun minus(right: BezierPatch3DBase<ColorRGBa>): BezierPatch3DBase<ColorRGBa>
Link copied to clipboard
operator fun plus(right: BezierPatch3DBase<ColorRGBa>): BezierPatch3DBase<ColorRGBa>
Link copied to clipboard
fun position(u: Double, v: Double): Vector3

Return a point on the patch by using its u,v parameterization

Link copied to clipboard
fun randomPoint(random: Random = Random.Default): Vector3

Generate a random point on the path

Link copied to clipboard
fun sub(u0: Double, v0: Double, u1: Double, v1: Double): BezierPatch3DBase<ColorRGBa>

Extract a sub-patch based on uv parameterization

Link copied to clipboard
operator fun times(scale: Double): BezierPatch3DBase<ColorRGBa>
Link copied to clipboard
fun transform(transform: Matrix44): BezierPatch3DBase<ColorRGBa>
Link copied to clipboard
fun vertical(u: Double): Path3D
Link copied to clipboard
fun <K : AlgebraicColor<K>, ConvertibleToColorRGBa> withColors(colors: List<List<K>>): BezierPatch3DBase<K>