mrdoob/three.js — Issue #1386: Shape Geometry
Author: em
Created: 2012-02-24 00:09:44+00:00
State: open

Is there a better place to post questions? I see the Question tag and it seems like this is where they are going unfortunately.

Been looking through the code for a while and am having a tough time figuring out how we can use Shape and Path directly.

Currently the classes appear to be in place mostly to support TextGeometry.

For instance, can we use three.js for state based canvas-like rendering? I was expecting something like this:

// red triangle
var shape = new THREE.ShapeGeometry();
shape.moveTo(10,0,0);
shape.moveTo(20,20,0);
shape.moveTo(0,20,0);
shape.close();

var mesh = new THREE.Mesh(shape, new THREE.MeshBasicMaterial({color:0xff0000}));
scene.add(mesh);

Thanks!