DGS Studio

Implicit 3D

3D Heart

Graph the implicit heart surface.

The heart is an implicit surface, F(x, y, z) = 0, not a height graph z = f(x, y). The cubic term (x² + 9y²/4 + z² − 1)³ builds the rounded body, and the x²z³ and y²z³ terms pull in the top cleft.

DGS extracts the zero set with marching cubes on a grid. There is no closed form z = f(x, y) for this shape. Editing a coefficient changes the pinch of the heart more than it moves a simple intercept.

Equation

(x^2 + 9*y^2/4 + z^2 - 1)^3 - x^2*z^3 - 9*y^2*z^3/80 = 0

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