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
db1fa0ef
Commit
db1fa0ef
authored
May 02, 2017
by
amandaghassaei
Browse files
closed crease
parent
13b86cc5
Changes
2
Hide whitespace changes
Inline
Side-by-side
js/controls.js
View file @
db1fa0ef
...
...
@@ -166,11 +166,11 @@ function initControls(globals){
//quad panels
creaseParams
.
push
(
0
);
break
;
case
2
:
case
3
:
//outline
shouldSkip
=
true
;
break
;
case
3
:
case
2
:
//crease
creaseParams
.
push
(
Math
.
PI
);
break
;
...
...
js/crease.js
View file @
db1fa0ef
...
...
@@ -7,13 +7,13 @@ function Crease(edge, face1Index, face2Index, targetTheta, type, node1, node2, i
//face1 corresponds to node1, face2 to node2
this
.
edge
=
edge
;
if
(
targetTheta
>
0
)
this
.
edge
.
highlight
();
for
(
var
i
=
0
;
i
<
edge
.
nodes
.
length
;
i
++
){
edge
.
nodes
[
i
].
addInvCrease
(
this
);
}
this
.
face1Index
=
face1Index
;
this
.
face2Index
=
face2Index
;
this
.
targetTheta
=
targetTheta
;
if
(
this
.
targetTheta
==
Math
.
PI
)
console
.
log
(
"
here
"
);
this
.
type
=
type
;
this
.
node1
=
node1
;
this
.
node2
=
node2
;
...
...
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