BezierPatch3DBase
open class BezierPatch3DBase<C : AlgebraicColor<C>, ConvertibleToColorRGBa>(val points: List<List<Vector3>>, val colors: List<List<C>> = emptyList())(source)
Represents a 3D Bezier patch defined by a 4x4 grid of control points and optional color data. This class provides utilities for manipulation, transformation, and evaluation of the patch.
The control points and colors must be organized as a 4x4 grid. The patch supports operations including transformation, sub-patching, path extraction, and random point generation.
Parameters
C
The type of color data associated with the patch. It must implement both AlgebraicColor
and ConvertibleToColorRGBa
.
Throws
if points
or colors
, if provided, do not conform to the required 4x4 structure.
Inheritors
Constructors
Properties
Link copied to clipboard
Return a transposed version of the bezier path by transposing the points matrix
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Generate a random point on the path
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun <K : AlgebraicColor<K>, ConvertibleToColorRGBa> withColors(colors: List<List<K>>): BezierPatch3DBase<K>