Skip to main content

TensorMath.approximatePolygonalCurve

Function

Approximates a polygonal curve with the specified precision.

  • Available on all platforms
Platform details: Snapchat, SPECS, Camera Kit Web, Camera Kit Mobile fully supported.

Platform details

  • Snapchat — Fully supported.

  • SPECS — Fully supported.

  • Camera Kit Web — Fully supported.

  • Camera Kit Mobile — Fully supported.

approximatePolygonalCurve(inTensor, inShape, epsilon, closed, outTensor): number

Approximates a polygonal curve with the specified precision.

Parameters

ParameterType
inTensorFloat32Array
inShapevec3
epsilonnumber
closedboolean
outTensorFloat32Array

Returns

number