Changes between Version 16 and Version 17 of PythonOcc/elbow


Ignore:
Timestamp:
Dec 2, 2013, 3:03:51 PM (10 years ago)
Author:
Leon Kos
Comment:

Canvas

Legend:

Unmodified
Added
Removed
Modified
  • PythonOcc/elbow

    v16 v17  
    152152stl_writer.Write(myShp4.Shape(), "elbow.stl", False)
    153153}}}
     154
     155== Prikaz modela na spletni strani s knjižnico jsc3d ==
     156{{{
     157#!html
     158<script src="/vaje/raw-attachment/wiki/PythonOcc/elbow/jsc3d.min.js></script>
     159<script type="text/javascript">
     160function onLoad(){
     161  var canvas = document.getElementById('vc');
     162  var viewer = new JSC3D.Viewer(canvas);
     163  viewer.setParameter('SceneUrl', '/vaje/raw-attachment/wiki/PythonOcc/elbow/elbow.stl');
     164  viewer.setParameter('ModelColor', '#CAA618');
     165  viewer.init();
     166  viewer.update();
     167}     
     168window.onload = window.onresize = function() {onLoad();}       
     169</script> 
     170<canvas id="cv" width="600" height="400"
     171  style="background:lightgrey; float:right;" ></canvas>
     172}}}