Commit 3a857bde authored by amandaghassaei's avatar amandaghassaei

typed arrays working again

parent 4adedfec
......@@ -477,12 +477,8 @@ define(['underscore', 'appState', 'three'], function(_, appState, THREE){
return this.properties.density;
};
DMAMaterial.prototype.getElasticMod = function(){
return this.properties.elasMod*1000000000;
};
DMAMaterial.prototype.getK = function(){
return this.properties.k;
DMAMaterial.prototype.getLongitudalK = function(){
return this.properties.longitudalK;
};
DMAMaterial.prototype.getMesh = function(){
......
......@@ -90,6 +90,7 @@ define(['three', 'underscore', 'backbone', 'threeModel', 'appState', 'lattice'],
var dt = this.get("dtSolver")/1000000;//convert to sec
var renderRate = this.get("dtRender");
var runConstants = this._setRunConstants();
runConstants.dt = dt;
three.startAnimationLoop(function(){
for (var i=0;i<renderRate-1;i++){
......
This diff is collapsed.
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