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) {
1
11
1
GitHub: Neticon/webgl-tests
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 }
0
0
4
+ 2 other calls in file
three.Vector3 is the most popular function in three (22341 examples)