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
526d9b19
Commit
526d9b19
authored
May 07, 2017
by
amandaghassaei
Browse files
eod
parent
f5250244
Changes
2
Hide whitespace changes
Inline
Side-by-side
js/controls.js
View file @
526d9b19
...
...
@@ -245,6 +245,7 @@ function initControls(globals){
if
(
numSteps
<=
0
)
return
;
$
(
"
#numSteps
"
).
val
(
numSteps
);
globals
.
model
.
step
(
numSteps
);
$
(
"
#reset
"
).
show
();
});
setInput
(
"
#strainClip
"
,
globals
.
strainClip
,
function
(
val
){
...
...
js/model.js
View file @
526d9b19
...
...
@@ -60,6 +60,7 @@ function initModel(globals){
}
object3D
.
material
=
material
;
object3D2
.
material
=
material2
;
globals
.
threeView
.
render
();
}
function
updateEdgeVisibility
(){
...
...
@@ -73,6 +74,7 @@ function initModel(globals){
for
(
var
i
=
0
;
i
<
creases
.
length
;
i
++
){
creases
[
i
].
setVisibility
();
}
globals
.
threeView
.
render
();
}
function
updateMeshVisibility
(){
...
...
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