1let geom = new THREE.Geometry();
2let v1 = new THREE.Vector3(0,0,0);
3let v2 = new THREE.Vector3(30,0,0);
4let v3 = new THREE.Vector3(30,30,0);
5
6geom.vertices.push(v1);
7geom.vertices.push(v2);
8geom.vertices.push(v3);
9
10geom.faces.push( new THREE.Face3( 0, 1, 2 ) );
11geom.computeFaceNormals();
12
13let mesh= new THREE.Mesh( geom, new THREE.MeshNormalMaterial() );
14