Commit b492bfb0 authored by Amira Abdel-Rahman's avatar Amira Abdel-Rahman
Browse files

tendon trial something wrong and dynamic slender beam working

parent 643c7cdb
Pipeline #12118 passed with stage
in 23 seconds
......@@ -8,6 +8,7 @@ node_modules
*.mtl
CAD
tutorial
newTendon
live
.DS_Store
*.gif
......
......@@ -35,7 +35,7 @@
var interaction= {
exaggeration:1,
speed:100*2 //100
speed:100/10 //100
}
var gui = new dat.GUI();
......@@ -69,6 +69,9 @@
nodeScale=scale*10
}
// scale=10000;
// nodeScale=scale/100;
var stress=0.0;
......@@ -120,7 +123,7 @@
(document.getElementById('3d-graph'))
.d3Force('center', null)
.d3Force('charge', null)
.linkWidth(1.0*scale)
// .linkWidth(1.0*scale)
.linkOpacity(1.0)
// .linkColor(color3)
.nodeThreeObject(({ size,restrained,loaded,displaced,opacity }) => new THREE.Mesh(
......@@ -230,7 +233,7 @@
Graph.nodeThreeObject(({ size,restrained,loaded,displaced,axs,ays,azs,opacity }) => getMesh(size,restrained,loaded,displaced,axs[count],ays[count],azs[count],opacity) );
Graph.linkColor(({ stresses }) => stresses[count]);
Graph.linkWidth(({ stressesVal }) => (stressesVal[count]==0.0)?(scale/10.0):scale)
// Graph.linkWidth(({ stressesVal }) => (stressesVal[count]==0.0)?(scale/10.0):scale)
// Graph.linkOpacity(({ stresses }) => stresses[count]);
// console.log()
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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