Commit cd41ba82 authored by amandaghassaei's avatar amandaghassaei
Browse files

svg renederer

parent c5efbdc6
......@@ -412,8 +412,8 @@
<li class="divider"></li>
<li><a id="exportSTL" href="#">Save Simulation as STL...</a></li>
<!--<li><a id="saveSVG" href="#">Save Pattern as SVG...</a></li>-->
<li><a id="saveSVGScreenshot" href="#">Save SVG screenshot</a></li>
<li><a id="saveSVG" href="#">Save Pattern as SVG...</a></li>
<!--<li><a id="saveSVGScreenshot" href="#">Save SVG screenshot</a></li>-->
</ul>
</li>
<li><a id="navPattern" href="#">Pattern</a></li>
......
......@@ -191,6 +191,8 @@ function initThreeView(globals) {
function saveSVG(){
// svgRenderer.setClearColor(0xffffff);
svgRenderer.setSize(window.innerWidth,window.innerHeight);
svgRenderer.sortElements = true;
svgRenderer.sortObjects = true;
svgRenderer.setQuality('high');
svgRenderer.render(scene,camera);
//get svg source.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment