Open GoogleCodeExporter opened 9 years ago
I'm sorry for the bad documentation.
Since all resource requests should be asynchronous, the STL loader provides an
event handler named 'onload' which should be overridden to get the parsed scene
object when loading is done.
So the simplest snnipet to demonstrate this may be:
var stl_loader = new JSC3D.StlLoader();
stl_loader.onload = function(scene) {
viewer.replaceScene(scene);
};
stl_loader.loadFromUrl('your-model.stl');
That's it.
Original comment by Humu2...@gmail.com
on 15 Jul 2013 at 7:09
alright
what im realy trying to achieve is to load many .stl files as parts, not as
a scene
so i could build one model from many stl files
is that even possible with jsc3D?
Original comment by radas...@gmail.com
on 16 Jul 2013 at 11:08
Original issue reported on code.google.com by
radas...@gmail.com
on 15 Jul 2013 at 5:09Attachments: