Commit a86ad777 authored by Amanda Ghassaei's avatar Amanda Ghassaei

better stl

parent 58f26ac8
......@@ -25,6 +25,15 @@ Type:  
<% }); %>
</ul>
</div><br/><br/>
Part Type: &nbsp;&nbsp;
<div class="btn-group">
<button data-toggle="dropdown" class="btn dropdown-toggle" type="button"><%= allLattices[cellType].connection[connectionType].type[latticeType].parts[partType].name %><span class="caret"></span></button>
<ul role="menu" class="dropdown-menu">
<% _.each(allLattices[cellType].connection[connectionType].type[latticeType].parts, function(val, key){ %>
<li><a class="lattice dropdownSelector" data-property="partType" data-value="<%= key %>" href="#"><%= val.name %></a></li>
<% }); %>
</ul>
</div><br/><br/>
Aspect Ratio:&nbsp;&nbsp;
<input data-property="aspectRatio" data-key="x" value="<%= aspectRatio.x %>" placeholder="X" class="form-control lattice floatInput" type="text">&nbsp;
<input data-property="aspectRatio" data-key="y" value="<%= aspectRatio.y %>" placeholder="Y" class="form-control lattice floatInput" type="text">&nbsp;
......
......@@ -9,7 +9,7 @@ define(['underscore', 'stlLoader', 'gikPart', 'bin!dnaLegoBrickSTL'], function(_
var unitGeo = preProcessGeo(loader.parse(stl));
function preProcessGeo(geo){
geo.applyMatrix(new THREE.Matrix4().makeRotationZ(Math.PI/2));
geo.applyMatrix(new THREE.Matrix4().makeRotationZ(-Math.PI/2));
geo.applyMatrix(new THREE.Matrix4().makeTranslation(0,0,-0.54));
return geo;
}
......
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