mrdoob/three.js — Issue #1020: drawing a triangle does not work
Author: msrk
Created: 2012-01-04 12:04:55+00:00
State: open

what is wrong in the following in creating a triangle:
the triangle does not appear

var geometry2 = new THREE.Geometry();
var fface = THREE.Face3();
var meshmaterial = new THREE.MeshLambertMaterial(
{
color: 0xff0000
});
for ( var i = 0; i < 3; i ++ ) {
...

fface.vertices.push(new THREE.Vertex(position));
}

geometry2.faces.push(fface);
var mesh = new THREE.Mesh(geometry2, meshmaterial);
var group = new THREE.Object3D();
group.add(mesh);
scene.add( group );