DGS Studio

Calabi–Yau

Calabi–Yau 5, 25 patches

Quintic Calabi–Yau with the patch count given explicitly.

calabi_yau(5, 25) projects a Fermat curve of degree 5. The second argument asks for 25 patches explicitly. Neighboring patches use different colors, and the surface is drawn partly transparent so the layers stay visible.

n has to be an integer from 2 to 12, and the patch count cannot exceed n². calabi_yau(5) and calabi_yau(5, 25) are the same quintic projection; the second form shows the 25 = 5² patches in the input. A different n changes the symmetry.

Equation

calabi_yau(5, 25)

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