How to use the ExtrudeBufferGeometry function from three

Find comprehensive JavaScript three.ExtrudeBufferGeometry code examples handpicked from public code repositorys.

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,
fork icon4
star icon7
watch icon1

+ 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
fork icon0
star icon5
watch icon3

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
fork icon0
star icon0
watch icon2

+ 3 other calls in file

Other functions in three

Sorted by popularity

function icon

three.Vector3 is the most popular function in three (22341 examples)