I have a trapezoid shape created with the code below. I am trying to extrude this geometry to a specific height of 2800, but I'm having trouble figuring out where to set the height parameter. Any suggestions on how to achieve this?
//Create Trapezoid Shape
var wallPoints = [[0,0,0],
[0,1000,0],
[-100,1100,0],
[-100,-100,0],
[0,0,0]];
var Vector3WallPoints = [];
for (var i=0;i<wallPoints.length;i++)
{
Vector3WallPoints.push(new THREE.Vector3(wallPoints[i][0],wallPoints[i][1],wallPoints[i][2]));
}
var wallShape = new THREE.Shape( Vector3WallPoints );
var extrusionSettings = {
amount: 2800,
//size: 300, height: 400, curveSegments: 3,
//bevelThickness: 10, bevelSize: 20, bevelEnabled: false,
material: 0, extrudeMaterial: 1, amount: 100,
};
var wallGeometry = new THREE.ExtrudeGeometry( wallShape, extrusionSettings );
var materialFront = new THREE.MeshBasicMaterial( { color: 0xffffff } );
var materialSide = new THREE.MeshBasicMaterial( { color: 0xff8800 } );
var materialArray = [ materialFront, materialSide ];
var wallMaterial = new THREE.MeshFaceMaterial(materialArray);
var walls = new THREE.Mesh( wallGeometry, wallMaterial );
scene.add(walls);