Skip to main content

Function: drawParametricFunction()

function drawParametricFunction(
func,
__namedParameters?,
approximationConfig?): Drawing;

Defined in: packages/replicad/src/draw.ts:479

Creates the Drawing of parametric function

The drawing will be a spline approximating the function. Note that the degree should be at maximum 3 if you need to export the drawing as an SVG.

Parameters​

func​

(t) => Point2D

__namedParameters?​

closeShape?​

boolean = false

pointsCount?​

number = 400

start?​

number = 0

stop?​

number = 1

approximationConfig?​

BSplineApproximationConfig = {}

Returns​

Drawing