I am experiencing an issue with my geometry created using the three.js API. When I export an obj file from Blender and import it, the object renders faces instead of wireframe as desired. Could this problem be due to a mistake in my import or export process?
var loader = new THREE.OBJLoader( manager );
loader.load( '../3d/decoy.obj', function ( object ) {
object.traverse( function(child) {
if( child instanceof THREE.Mesh ) {
child.material = new THREE.MeshBasicMaterial( { color: 0x009900, wireframe: true } );
child.scale.set(20,20,20);
scene.add( child );
}
});
}, onProgress, onError );