Commit 1cc36b55 authored by amandaghassaei's avatar amandaghassaei
Browse files

small changes

parent bc7e359c
......@@ -519,6 +519,7 @@ function initDynamicSolver(globals){
syncNodesAndEdges: syncNodesAndEdges,
updateFixed: updateFixed,
solve: solve,
render: render,
reset: reset
}
}
\ No newline at end of file
......@@ -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,
......
......@@ -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,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment