Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
9bebc352
Commit
9bebc352
authored
May 04, 2017
by
amandaghassaei
Browse files
eod
parent
83284caa
Changes
6
Show whitespace changes
Inline
Side-by-side
index.html
View file @
9bebc352
...
...
@@ -363,7 +363,7 @@
<script
type=
"text/javascript"
src=
"js/crease.js"
></script>
<script
type=
"text/javascript"
src=
"js/model.js"
></script>
<script
type=
"text/javascript"
src=
"js/staticSolver.js"
></script>
<script
type=
"text/javascript"
src=
"js/dynamic/dynamic
Model
.js"
></script>
<script
type=
"text/javascript"
src=
"js/dynamic/dynamic
Solver
.js"
></script>
<script
type=
"text/javascript"
src=
"js/pattern.js"
></script>
<script
type=
"text/javascript"
src=
"js/saveSTL.js"
></script>
...
...
@@ -540,7 +540,9 @@
<span
aria-hidden=
"true"
>
×
</span>
</button>
<p><b>
Export STL
</b><br/><br/>
stl settings here...
settings:
<br/>
single sided/double sided
<br/>
scale
</p>
</div>
<div
class=
"modal-footer"
>
...
...
js/dynamic/dynamic
Model
.js
→
js/dynamic/dynamic
Solver
.js
View file @
9bebc352
File moved
js/main.js
View file @
9bebc352
...
...
@@ -121,4 +121,5 @@ $(function() {
globals
.
dynamicSolver
=
initDynamicSolver
(
globals
);
globals
.
pattern
=
initPattern
(
globals
);
// globals.threeView.sceneAdd(raycasterPlane);
$
(
"
.demo[data-url='Tessellations/miura-ori.svg']
"
).
click
();
});
\ No newline at end of file
js/model.js
View file @
9bebc352
...
...
@@ -252,10 +252,6 @@ function initModel(globals){
return
allNodeObject3Ds
;
}
function
updateEdgeVis
(){
}
return
{
pause
:
pause
,
resume
:
resume
,
...
...
js/pattern.js
View file @
9bebc352
...
...
@@ -76,8 +76,6 @@ function initPattern(globals){
});
}
loadSVG
(
"
assets/Tessellations/miura-ori.svg
"
);
function
parsePath
(
_verticesRaw
,
_segmentsRaw
,
$paths
){
for
(
var
i
=
0
;
i
<
$paths
.
length
;
i
++
){
var
segments
=
$paths
[
i
].
getPathData
();
...
...
js/saveSTL.js
View file @
9bebc352
...
...
@@ -15,6 +15,6 @@ function saveSTL(){
var
stlBin
=
geometryToSTLBin
(
data
);
if
(
!
stlBin
)
return
;
var
blob
=
new
Blob
([
stlBin
],
{
type
:
'
application/octet-binary
'
});
saveAs
(
blob
,
"
Origami
:
"
+
parseInt
(
globals
.
creasePercent
*
100
)
+
"
PercentFolded.stl
"
);
saveAs
(
blob
,
globals
.
filename
+
"
:
"
+
parseInt
(
globals
.
creasePercent
*
100
)
+
"
PercentFolded.stl
"
);
$
(
"
#exportSTLModal
"
).
modal
(
"
hide
"
);
}
\ No newline at end of file
Write
Preview
Supports
Markdown
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