How to use the SubdivisionModifier function from three

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

388
389
390
391
392
393
394
395
396
397
});

// Will make our blocky model smooth by creating more verticies.
// This is exactly how Blender would do it, except that it would
// make `android.json` exponentially larger to download.
const subdivider = new THREE.SubdivisionModifier(2);

// Apply materials and subdivision to every piece of geometry
// within the loaded model.
for (let mesh of this.android.children) {
fork icon1
star icon11
watch icon1

102
103
104
105
106
107
108
109
110
111

renderLoop()

function getSmooth(geometry, subdivisions) {
  // scene.remove(scene.getObjectByName('smooth'))
  const modifier = new THREE.SubdivisionModifier(subdivisions)
  const modified = modifier.modify(geometry)
  // addMesh(modified, material, 10, 'smooth')
  return modified
}
fork icon0
star icon0
watch icon4

+ 2 other calls in file

Other functions in three

Sorted by popularity

function icon

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