Commit 2c865e04 authored by amandaghassaei's avatar amandaghassaei
Browse files

sim working (as far as I can tell)

parent 15196d5b
......@@ -397,7 +397,6 @@ function initDynamicModel(globals){
function updateCreasesMeta(initing){
for (var i=0;i<creases.length;i++){
var crease = creases[i];
console.log(crease.getK());
creaseMeta[i*4] = crease.getK();
creaseMeta[i*4+1] = crease.getD();
if (initing) creaseMeta[i*4+2] = crease.getTargetTheta();
......
......@@ -24,9 +24,9 @@ function initGlobals(){
//sim settings
creasePercent: 0,
axialStiffness: 100,
axialStiffness: 1000,
creaseStiffness: 30,
panelStiffness: 1,
panelStiffness: 30,
//dynamic sim settings
percentDamping: 1,
......
......@@ -67,7 +67,7 @@ function initModel(globals){
for (var i=0;i<_vertices.length;i++){
_nodes.push(new Node(_vertices[i].clone(), _nodes.length));
}
// _nodes[_faces[0].a].setFixed(true);
_nodes[_faces[0].a].setFixed(true);
// _nodes[_faces[0].b].setFixed(true);
// _nodes[_faces[0].c].setFixed(true);
......
......@@ -32,7 +32,7 @@ function initPattern(globals){
});
}
loadSVG("assets/Tessellations/SimpleVertex.svg", function(svg){
loadSVG("assets/Tessellations/miura-ori.svg", function(svg){
var _$svg = $(svg);
//format all lines
......
Supports Markdown
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