A superficie que se representa é \[y = 2 \sin\left(\frac{x}{2}\right) \cdot \cos(z),\] con \(x,z \in [-10, 10]\).

Obxectos da escea:



	function surfaceFunction( u, v ) {
		var x,y,z;
                // u  and v range from 0 to 1.
		x = 20 * (u - 0.5);  // x e z van de -10 a 10
		z = 20 * (v - 0.5);
		y = 2*(Math.sin(x/2) * Math.cos(z));
		return new THREE.Vector3( x, y, z );
		}

	var surfaceGeometry = new THREE.ParametricGeometry(surfaceFunction, 64, 64);

	var material = new THREE.MeshPhongMaterial({
				color: "salmon",
				side: THREE.DoubleSide
				});
    
	var surface = new THREE.Mesh( surfaceGeometry, material );
	scene.add(surface);