jared-hughes / DesThree

Desmos bindings for three.js
3 stars 0 forks source link

Add geometries that take a path as input #38

Closed jared-hughes closed 3 years ago

jared-hughes commented 3 years ago

Extrusion and Shape take a 2-d Path as input. This could simple be a list of line segments, but it could also support Quadratic curves and Cubic Bezier curves. Simplest option would be to use splineThru to get a smooth cubic spline through the list of points.

Note: Desmos points are not currently exposed in the API, so this would require a 2d point function similar to Vector3.

Lathe takes a list of points for some reason and does not support paths.

jared-hughes commented 3 years ago

See #40 for some ideas about obtaining generated segments and functions from the Calc object