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
5023423e
Commit
5023423e
authored
May 05, 2017
by
amandaghassaei
Browse files
small changes
parent
1b956f36
Changes
1
Hide whitespace changes
Inline
Side-by-side
js/controls.js
View file @
5023423e
...
...
@@ -276,7 +276,9 @@ function initControls(globals){
var
x
=
normal1
.
dot
(
normal2
);
var
y
=
normal1
.
cross
((
json
.
vertices_coords
[
v2
].
clone
().
sub
(
json
.
vertices_coords
[
v1
])).
normalize
()).
dot
(
normal2
);
var
angle
=
Math
.
atan2
(
y
,
x
);
angle
=
Math
.
abs
(
angle
)
*
foldSign
;
if
(
Math
.
abs
(
Math
.
PI
-
Math
.
abs
(
angle
))
<
0.2
){
angle
=
Math
.
PI
*
foldSign
;
}
creaseParams
.
push
(
angle
);
break
;
}
...
...
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