How to use the ExtrudeBufferGeometry function from three
Find comprehensive JavaScript three.ExtrudeBufferGeometry code examples handpicked from public code repositorys.
GitHub: zeesaas/Three-MapGL
41 42 43 44 45 46 47 48 49 50
return new THREE.Geometry() } // 创建拉伸几何体 createExtrudeGeometry(shape) { return new THREE.ExtrudeBufferGeometry(shape, { depth: 5, bevelEnabled: false, bevelThickness: 1.5, bevelSize: 1,
4
7
1
+ 3 other calls in file
47 48 49 50 51 52 53 54 55 56
let extrudeSettings = { steps: points.length * divisions, bevelEnabled: false, extrudePath: extrudePath } let geometry = new THREE.ExtrudeBufferGeometry(shape, extrudeSettings) let material = new THREE.MeshLambertMaterial({ color: matColor.getHex(), wireframe: false }) let mesh = new THREE.Mesh(geometry, material) this.points = points this.extrudePath = extrudePath
0
5
3
GitHub: dunkelstern/3dmap
74 75 76 77 78 79 80 81 82 83
return shape; } // create an extruded mesh from a shape osmRenderer.prototype.extrude = function (shape, settings, material) { const geometry = new THREE.ExtrudeBufferGeometry(shape, settings); const mesh = new THREE.Mesh(geometry, material); // as we create the mesh in X-Y direction we have to rotate it // to lay it in the X-Y plane to fly over it
0
0
2
+ 3 other calls in file
three.Vector3 is the most popular function in three (22341 examples)