Skip to content
This repository has been archived by the owner on Apr 21, 2021. It is now read-only.

how to use ExtrudeGeometry to make a mesh? #92

Open
limzgiser opened this issue Aug 21, 2020 · 1 comment
Open

how to use ExtrudeGeometry to make a mesh? #92

limzgiser opened this issue Aug 21, 2020 · 1 comment

Comments

@limzgiser
Copy link

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.

@jscastro76
Copy link

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.
image

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants