DGS Studio

3D Parametric Curves

Lissajous Curve

A closed curve from three sine frequencies.

curve3d(sin(3*t), sin(4*t), sin(5*t), 0, 2*pi) is a space curve, one point for each t, not a filled surface. The frequencies 3, 4, and 5 are coprime in pairs, so the path fills a box of Lissajous loops instead of closing after one small cycle.

The command needs x(t), y(t), z(t), and both bounds. The viewer draws a strip of samples in the same 3D scene used for surfaces. Leaving out a bound is an incomplete curve, not a surface with a default interval.

Equation

curve3d(
sin(3*t),
sin(4*t),
sin(5*t),
0,
2*pi
)

How the 3D scene is built

A 3D example is drawn in the existing surface viewer, not on the flat JSXGraph board. An equation z = f(x, y) becomes a height field. A quadric such as a sphere or hyperboloid uses its own sampler. A parametric3d or curve3d command supplies the coordinates directly.

The camera starts framed on the surface. Axes and the grid stay in the scene. Implicit surfaces are extracted with marching cubes from F(x, y, z) = 0. If you edit the equation and generate again, the same viewer replaces the mesh instead of opening a second renderer.

Reading the input

Try a change

Generate Graph sends the expression to the graph engine. A 3D result is drawn in the surface viewer: a mesh, a space curve, or a shaded region, depending on the command. The 2D board is cleared first.

Edit and generate

Generate Graph opens the studio homepage and runs this field. Open in DGS Studio loads the same text and waits for you to generate it. The equation is sent once, as a query parameter.

Related examples