How to use the BufferGeometryUtils function from three

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

1090
1091
1092
1093
1094
1095
1096
THREE.BufferGeometryUtils.mergeBufferGeometries = mergeBufferGeometries;
THREE.BufferGeometryUtils.mergeGroups = mergeGroups;
THREE.BufferGeometryUtils.mergeVertices = mergeVertices;
THREE.BufferGeometryUtils.toTrianglesDrawMode = toTrianglesDrawMode;


module.exports = THREE.BufferGeometryUtils;
fork icon2
star icon10
watch icon0

131
132
133
134
135
136
137
138
139
mesh.geometry.verticesNeedUpdate = true;
mesh.geometry.normalsNeedUpdate = true;
mesh.geometry.computeBoundingSphere();

if (options.useBufferGeometry) {
    mesh.geometry = THREE.BufferGeometryUtils.fromGeometry(mesh.geometry);
}

// lod.addLevel(mesh, options.unit * 10 * Math.pow(2, lodLevel));
fork icon0
star icon2
watch icon3

+ 3 other calls in file

2480
2481
2482
2483
2484
2485
2486
2487
2488
var cached = getCachedCombinedGeometry(cache, geometries);

if (cached) {
  if (cached.geometry !== null) return [cached.geometry];
} else {
  var geometry = THREE.BufferGeometryUtils.mergeBufferGeometries(
    geometries,
    true,
  );
fork icon0
star icon0
watch icon0

+ 7 other calls in file

21
22
23
24
25
26
27
28
29
30
require('../../vendor/DeviceOrientationControls'); // THREE.DeviceOrientationControls
require('three/examples/js/loaders/DRACOLoader');  // THREE.DRACOLoader
require('three/examples/js/loaders/GLTFLoader');  // THREE.GLTFLoader
require('three/examples/js/loaders/OBJLoader');  // THREE.OBJLoader
require('three/examples/js/loaders/MTLLoader');  // THREE.MTLLoader
require('three/examples/js/utils/BufferGeometryUtils');  // THREE.BufferGeometryUtils
require('three/examples/js/lights/LightProbeGenerator'); // THREE.LightProbeGenerator

THREE.DRACOLoader.prototype.crossOrigin = 'anonymous';
THREE.GLTFLoader.prototype.crossOrigin = 'anonymous';
fork icon0
star icon0
watch icon0

Other functions in three

Sorted by popularity

function icon

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