3D Coordinate Systems
Cylindrical Surface
A cone from the cylindrical relation r = z.
The cylindrical relation r = z is followed by x = r cos t and y = r sin t. r is the distance from the z-axis, not a third plotted coordinate by itself.
When r equals z, the surface is a cone. When r is the constant 2, every point is 2 units from the z-axis and the surface is a cylinder. t carries the point around the axis.
Equation
r = z
x = r*cos(t)
y = r*sin(t)
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
r = z— This assignment names a value, a set, or a coordinate that a later line uses.x = r*cos(t)— This assignment names a value, a set, or a coordinate that a later line uses.y = r*sin(t)— This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.
Try a change
- Change a constant on the right-hand side, or the amplitude of a wave, and generate. The 3D frame updates to the new surface.
- If this is z = f(x, y), try z = -f(x, y). The shape flips through the xy-plane.
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.