Skip to content
Snippets Groups Projects
Commit fb2bdbf3 authored by Amanda Ghassaei's avatar Amanda Ghassaei
Browse files

z spacing

parent d6aba754
No related branches found
No related tags found
No related merge requests found
...@@ -171,7 +171,7 @@ LatticeMenuView = Backbone.View.extend({ ...@@ -171,7 +171,7 @@ LatticeMenuView = Backbone.View.extend({
<% } %>\ <% } %>\
<% if (connectionType == "gik") { %>\ <% if (connectionType == "gik") { %>\
GIK Length:&nbsp;&nbsp;<input id="gikLength" value="<%= gikLength %>" placeholder="GIK length" class="form-control numberInput" type="text"><br/>\ GIK Length:&nbsp;&nbsp;<input id="gikLength" value="<%= gikLength %>" placeholder="GIK length" class="form-control numberInput" type="text"><br/>\
<% } %>\ <br/><% } %>\
<br/>\ <br/>\
Scale:&nbsp;&nbsp;<input id="latticeScale" value="<%= scale %>" placeholder="enter scale" class="form-control numberInput" type="text"><br/>\ Scale:&nbsp;&nbsp;<input id="latticeScale" value="<%= scale %>" placeholder="enter scale" class="form-control numberInput" type="text"><br/>\
<input id="scaleSlider" data-slider-id="ex1Slider" type="text" data-slider-min="1" data-slider-max="100" data-slider-step="0.1" data-slider-value="<%= scale %>"/>\ <input id="scaleSlider" data-slider-id="ex1Slider" type="text" data-slider-min="1" data-slider-max="100" data-slider-step="0.1" data-slider-value="<%= scale %>"/>\
......
...@@ -90,6 +90,29 @@ AppState = Backbone.Model.extend({ ...@@ -90,6 +90,29 @@ AppState = Backbone.Model.extend({
kelvin: {face: null} kelvin: {face: null}
}, },
allMaterialTypes:{
octa:{
face: null,
freeformFace: null,
edge: null,
edgeRot: null,
vertex: null//{
//beam:"Beam",
// square:"Square",
// xShape:"X"
// }
},
tetra: {vertex: null},
cube: {face: null,
gik: {
brass:"Brass",
fiberGlass: "Fiberglass"
}
},
truncatedCube: {face: null},
kelvin: {face: null}
},
allMachineTypes:{ allMachineTypes:{
octa:{ octa:{
face: {handOfGod: "Hand of God"}, face: {handOfGod: "Hand of God"},
......
...@@ -80,7 +80,7 @@ OtherLatticeSubclasses = { ...@@ -80,7 +80,7 @@ OtherLatticeSubclasses = {
zScale: function(scale){ zScale: function(scale){
if (!scale) scale = this.get("scale"); if (!scale) scale = this.get("scale");
return scale*(1+2*this.get("cellSeparation").z); return 1.28*scale*(1+2*this.get("cellSeparation").z);
}, },
makeCellForLatticeType: function(indices, scale){ makeCellForLatticeType: function(indices, scale){
......
...@@ -236,6 +236,7 @@ GIKHighlighter = Highlighter.extend({ ...@@ -236,6 +236,7 @@ GIKHighlighter = Highlighter.extend({
updateGikLength: function(scale){ updateGikLength: function(scale){
this.updateScale(scale); this.updateScale(scale);
if (!this.direction) return;
this._setPosition(this.position, this.direction);//position of center point this._setPosition(this.position, this.direction);//position of center point
this._setRotation(this.direction, this.index); this._setRotation(this.direction, this.index);
dmaGlobals.three.render(); dmaGlobals.three.render();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment