Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
1cc36b55
Commit
1cc36b55
authored
May 28, 2017
by
amandaghassaei
Browse files
small changes
parent
bc7e359c
Changes
3
Hide whitespace changes
Inline
Side-by-side
js/dynamic/dynamicSolver.js
View file @
1cc36b55
...
...
@@ -519,6 +519,7 @@ function initDynamicSolver(globals){
syncNodesAndEdges
:
syncNodesAndEdges
,
updateFixed
:
updateFixed
,
solve
:
solve
,
render
:
render
,
reset
:
reset
}
}
\ No newline at end of file
js/globals.js
View file @
1cc36b55
...
...
@@ -38,7 +38,7 @@ function initGlobals(){
//3d vis
simType
:
"
dynamic
"
,
//sim settings
//
compliant
sim settings
creasePercent
:
0.5
,
axialStiffness
:
20
,
creaseStiffness
:
0.7
,
...
...
@@ -48,11 +48,11 @@ function initGlobals(){
percentDamping
:
0.5
,
density
:
1
,
strainClip
:
5.0
,
strainClip
:
5.0
,
//for strain visualization, % strain that is drawn red
//import pattern settings
vertTol
:
3
,
//vertex merge tolerance
foldUseAngles
:
true
,
foldUseAngles
:
true
,
//import current angles from fold format as target angles
//save stl settings
filename
:
null
,
...
...
js/model.js
View file @
1cc36b55
...
...
@@ -46,6 +46,10 @@ function initModel(globals){
polygonOffsetUnits
:
1
});
backside
.
visible
=
false
;
if
(
!
globals
.
threeView
.
simulationRunning
)
{
getSolver
().
render
();
setGeoUpdates
();
}
}
else
{
material
=
new
THREE
.
MeshPhongMaterial
({
shading
:
THREE
.
FlatShading
,
side
:
THREE
.
FrontSide
,
...
...
Write
Preview
Markdown
is supported
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