STLLoader and ASCII
Have two pages with STLLoader successfully implemented and both coded to display the same ASCII AND binary STL files. One page, however, doesn't want to render the ASCII files (which I have been successfully displayed on the other page), it throws no error and when I prompt the console for the ASCII mesh variable it says undefined, but the binary one is defined and Displayed; so I changed the code to: loaderSTL.load('./test-assets/stls/ascii.stl', function(geometry) { contFemurMesh = new THREE.Mesh(geometry, boneMaterial); console.log("ASCII STL"); scene.add(contFemurMesh); }); loaderSTL.load('./test-assets/stls/half_pelvis.stl', function(geometry) { halfPelvisMesh = new THREE.Mesh(geometry, boneMaterial); console.log("BINARY STL") scene.add(halfPelvisMesh); }); --And I only saw BINARY STL in console. Normally I would Google this but I am just really confused here and I don't have enough javascript/three.js knowledge to understand this. Everything is successfully imported (THREE.js, no 'file not found' errors). If it matters I am hosting this on a Python simple server (python3 http.server 8080) and I am running it on a Chrome browser. Thanks.
1
# Users who requested the code (so far)
$9
Suggested price from buyers at which they’d buy
Potential revenues from requesters (actual revenues can be significantly higher)
Time of last request:on May 3, 2018
Tags:javascript, three.js
If you own such codes, please set up an offer and then invite users to it by clicking on «Invite to offer».
If you’re also be willing to buy those codes then click on «I’d also buy it» (no commitment to buy, but please only click when you’re serious about it).
Tell people about Sellcodes and get 20-40% on every resulting sale!