I needed to convert a buffer geometry from an FBXloader to a standard geometry.
let myGeometry;
const loader = new THREE.FBXLoader();
loader.load( 'models/path_to_mesh.fbx', ( object ) => {
object.traverse( ( child ) => {
if ( child.isMesh && child.geometry.isBufferGeometry) {
myGeometry = (new THREE.Geometry()).fromBufferGeometry(child);
}
} );
} );
Encountered the following error:
TypeError: THREE.Geometry is not a constructor
I attempted creating a simple geometry and received the same error:
const geo = new THREE.Geometry();
Using Three.min 127dev version
Appreciate your help in advance