Skip to Content
DocumentationAPI Reference2DCurvesFunctionsFunction: getBezierSplineProfile()

@revideo/2d


@revideo/2d / curves / getBezierSplineProfile

Function: getBezierSplineProfile()

getBezierSplineProfile(knots, closed, smoothness): CurveProfile

Defined in: 2d/src/lib/curves/getBezierSplineProfile.ts:114 

Calculate the curve profile of a spline based on a set of knots.

Parameters

knots

KnotInfo[]

The knots defining the spline

closed

boolean

Whether the spline should be closed or not

smoothness

number

The desired smoothness of the spline when using auto calculated handles.

Returns

CurveProfile

© 2026 Haven Technologies, Inc.
Function: getBezierSplineProfile() – Revideo