Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
cd41ba82
Commit
cd41ba82
authored
May 06, 2017
by
amandaghassaei
Browse files
svg renederer
parent
c5efbdc6
Changes
2
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
cd41ba82
...
...
@@ -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>
...
...
js/threeView.js
View file @
cd41ba82
...
...
@@ -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.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment