Open limzgiser opened 4 years ago
like this? const shapeGeometry = new THREE.ExtrudeGeometry(shape, { depth: 3, bevelThickness: 2, bevelSegments: 10 }); const mesh = new THREE.Mesh( shapeGeometry, new THREE.MeshBasicMaterial({ color: 0xb8b730 * Math.random(), opacity: 1 }) );
I hope someone gives me a demo? 3Q.
This issue has been solved in the my Threebox fork. There's a specific example on creating extrusions from THREE.Vector2 arrays and from geoJson features.
like this?
const shapeGeometry = new THREE.ExtrudeGeometry(shape, { depth: 3, bevelThickness: 2, bevelSegments: 10 }); const mesh = new THREE.Mesh( shapeGeometry, new THREE.MeshBasicMaterial({ color: 0xb8b730 * Math.random(), opacity: 1 }) );
I hope someone gives me a demo? 3Q.