Answer the question
In order to leave comments, you need to log in
How to transfer geometry from one object to a new one?
Let's say there is an object
var sphere = new THREE.SphereGeometry(111.65, 32, 32);
var sphereMesh = new THREE.Mesh(sphere);
var geo = sphereMesh.geometry.toJSON();
var mesh = new THREE.Mesh(geo, new THREE.MeshPhongMaterial({color: 0xFF0000}));
scene.add(mesh);
Cannot read property 'center' of undefined
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question