-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
Hello,
i have noticed that the get_info function returns a null value. i believe that there is a problem with one of the libraries.
this is the code i've used to try and acess the volume and other info using the get_model_info() method.
<body>
<div id="stl_cont" style="width:500px;height:500px;margin:0 auto;"></div>
<script src="stl_viewer.min.js"></script>
<script src="parser.min.js"></script>
<script src="three.min.js"></script>
<script src="CanvasRenderer.js"></script>
<script src="OrbitControls.js"></script>
<script src="Projector.js"></script>
<script src="webgl_detector.js"></script>
<script src="TrackballControls.js"></script>
<script>
var stl_viewer=new StlViewer
(
document.getElementById("stl_cont"),
);
stl_viewer.add_model({id:0, filename:"mystl.stl"});
alert( JSON.stringify(stl_viewer.get_model_info(0)) );
</script>
</body>
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels