3D Coordinate Systems
First-octant tetrahedron
The region where x, y, and z are nonnegative and x + y + z is at most 1.
The four inequalities x ≥ 0, y ≥ 0, z ≥ 0, and x + y + z ≤ 1 describe the solid tetrahedron in the first octant. Its corners are the origin and the three unit intercepts.
The volume of this tetrahedron is 1/6. The flat top is the plane x + y + z = 1. The other three faces lie on the coordinate planes. DGS shades the region instead of drawing only the boundary.
Equation
x >= 0
y >= 0
z >= 0
x + y + z <= 1
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
x >= 0— This inequality cuts the region. Points that fail it are outside the solid.y >= 0— This line defines an explicit function. The left side is the vertical coordinate, and the right side is evaluated for each x.z >= 0— This line defines a height. Each horizontal point (x, y) produces one z for the 3D mesh.x + y + z <= 1— This line is part of the example input and is sent to DGS unchanged.
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.