ThreeJS SubdivisionModifier not subdivide correctly a plane geometry

Description of the problem

i’m trying to subdivide a plane geometry on threeJS using SubdivisionModifie, i did this the last year and it worked fine, but now i updated my threeJS and SubdivisionModifie, and when i try to subdivide my plane geometry give me a different result.

code:

var subdivisions = 4; var modifier = new THREE.SubdivisionModifier( subdivisions ); modifier.modify( geometry, subdivisions ); geometry.computeFaceNormals(); geometry.computeVertexNormals(); child.geometry.dispose(); child.geometry = geometry;

Before update: https://i.stack.imgur.com/LQ6VV.png
After update: https://i.stack.imgur.com/FFbSM.png

Three.js version
  • Dev
  • r83
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • Linux
  • Android
  • IOS
Hardware Requirements (graphics card, VR Device, …)

Author: Fantashit

1 thought on “ThreeJS SubdivisionModifier not subdivide correctly a plane geometry

Comments are closed.