I am currently utilizing three.js to create a line in my project. However, I am facing an issue where the line appears flat like a paper, instead of a three-dimensional wall. I am struggling to increase the height of the line in my code.
Below is the code snippet I am working with:
var shape1 = new THREE.Shape();
shape1.moveTo(v1, v2);
shape1.lineTo(v1, v2);
shape1.bezierCurveTo(v1, v2, v3, v4, v5, v6);
var extrusionSettings = {
curveSegments: 0,
steps: 0,
amount: 0,
bevelEnabled: true,
bevelThickness: height,
bevelSize: 1,
bevelSegments: 8,
material: 0,
extrudeMaterial: 1
};
var geometry1 = new THREE.ExtrudeGeometry(shape1, extrusionSettings);
With this code, I am able to render the line as shown in the attached image.
My objective now is to make this line appear as a wall. I am struggling to adjust the width using the extrusionSettings options. Changing the bevelSize results in a curved appearance, which is not what I want. How can I achieve the desired effect?