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
f5df79eb
Commit
f5df79eb
authored
May 02, 2017
by
amandaghassaei
Browse files
small changes
parent
ee7c55d0
Changes
2
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
f5df79eb
...
...
@@ -371,6 +371,7 @@
<li><a
href=
"#"
class=
"demo"
data-url=
"Tessellations/waterbomb.svg"
>
Waterbomb
</a></li>
</ul>
</li>
<li><a
class=
"loadFile"
href=
"#"
>
Import .txt...
</a></li>
<li><a
class=
"loadFile"
href=
"#"
>
Import SVG...
</a></li>
<li
class=
"divider"
></li>
<!--<li><a id="saveSVG" href="#">Save Pattern as SVG...</a></li>-->
...
...
js/pattern.js
View file @
f5df79eb
...
...
@@ -165,6 +165,7 @@ function initPattern(globals){
}
function
getFacesAndVerticesForEdges
(
faces
,
allEdges
){
//todo merge this
var
allCreaseParams
=
[];
//face1Ind, vertInd, face2Ind, ver2Ind, edgeInd, angle
for
(
var
i
=
outlines
.
length
;
i
<
outlines
.
length
+
mountains
.
length
+
valleys
.
length
;
i
++
){
var
v1
=
allEdges
[
i
][
0
];
...
...
@@ -200,7 +201,6 @@ function initPattern(globals){
}
creaseParams
.
push
(
angle
);
}
else
{
console
.
log
(
"
panel
"
);
creaseParams
.
push
(
0
);
}
allCreaseParams
.
push
(
creaseParams
);
...
...
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