3

This will draw a cube, but how can I make it draw half of an extruded circle?

// half a circle
var rightfootgeo = new THREE.CubeGeometry(2, 2, 2);
for(var i = 0; i < 8; i += 1) {
    rightfootgeo.vertices[i].y -= 5;
}
0

1 Answer 1

2

You can use THREE.ExtrudeGeometry to extrude a shape defined by an array of points.

Here is a Fiddle that shows you how to extrude a half-circle: http://jsfiddle.net/CjZSZ/.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.