Package-level declarations
Types
Link copied to clipboard
class BezierPatch(points: List<List<Vector2>>, colors: List<List<ColorRGBa>> = emptyList()) : BezierPatchBase<ColorRGBa> , GeometricPrimitive2D
Link copied to clipboard
class BezierPatch3D(points: List<List<Vector3>>, colors: List<List<ColorRGBa>> = emptyList()) : BezierPatch3DBase<ColorRGBa> , GeometricPrimitive3D
Link copied to clipboard
open class BezierPatch3DBase<C : AlgebraicColor<C>, ConvertibleToColorRGBa>(val points: List<List<Vector3>>, val colors: List<List<C>> = emptyList())
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.
Link copied to clipboard
Link copied to clipboard
class BezierPatchDrawer
Functions
Link copied to clipboard
Create a bezier patch from 4 corners
Create a bezier patch from a closed shape contour (with 4 segments).
Create a cubic bezier patch from 4 segments. The control points of the segments are used in row-wise fashion
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun BezierPatch.distort(shapeContour: ShapeContour, referenceRectangle: Rectangle = shapeContour.bounds): ShapeContour
Distort a shape contour