Commit 9bebc352 authored by amandaghassaei's avatar amandaghassaei
Browse files

eod

parent 83284caa
......@@ -363,7 +363,7 @@
<script type="text/javascript" src="js/crease.js"></script>
<script type="text/javascript" src="js/model.js"></script>
<script type="text/javascript" src="js/staticSolver.js"></script>
<script type="text/javascript" src="js/dynamic/dynamicModel.js"></script>
<script type="text/javascript" src="js/dynamic/dynamicSolver.js"></script>
<script type="text/javascript" src="js/pattern.js"></script>
<script type="text/javascript" src="js/saveSTL.js"></script>
......@@ -540,7 +540,9 @@
<span aria-hidden="true">&times;</span>
</button>
<p><b>Export STL</b><br/><br/>
stl settings here...
settings:<br/>
single sided/double sided<br/>
scale
</p>
</div>
<div class="modal-footer">
......
......@@ -121,4 +121,5 @@ $(function() {
globals.dynamicSolver = initDynamicSolver(globals);
globals.pattern = initPattern(globals);
// globals.threeView.sceneAdd(raycasterPlane);
$(".demo[data-url='Tessellations/miura-ori.svg']").click();
});
\ No newline at end of file
......@@ -252,10 +252,6 @@ function initModel(globals){
return allNodeObject3Ds;
}
function updateEdgeVis(){
}
return {
pause: pause,
resume: resume,
......
......@@ -76,8 +76,6 @@ function initPattern(globals){
});
}
loadSVG("assets/Tessellations/miura-ori.svg");
function parsePath(_verticesRaw, _segmentsRaw, $paths){
for (var i=0;i<$paths.length;i++){
var segments = $paths[i].getPathData();
......
......@@ -15,6 +15,6 @@ function saveSTL(){
var stlBin = geometryToSTLBin(data);
if (!stlBin) return;
var blob = new Blob([stlBin], {type: 'application/octet-binary'});
saveAs(blob, "Origami : " + parseInt(globals.creasePercent*100) + "PercentFolded.stl");
saveAs(blob, globals.filename + " : " + parseInt(globals.creasePercent*100) + "PercentFolded.stl");
$("#exportSTLModal").modal("hide");
}
\ No newline at end of file
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