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

better stl

parent 58f26ac8
No related branches found
No related tags found
No related merge requests found
No preview for this file type
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment