Commit 41c51a9d authored by amandaghassaei's avatar amandaghassaei
Browse files

show num of each edge type

parent b0e02a91
...@@ -586,19 +586,19 @@ ...@@ -586,19 +586,19 @@
<div id="edgeVisOptions" class="indent"> <div id="edgeVisOptions" class="indent">
<label class="checkbox" for="mtnsVisible"> <label class="checkbox" for="mtnsVisible">
<input id="mtnsVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span> <input id="mtnsVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span>
Mountains Mountains <span id="numMtns"></span>
</label> </label>
<label class="checkbox" for="valleysVisible"> <label class="checkbox" for="valleysVisible">
<input id="valleysVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span> <input id="valleysVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span>
Valleys Valleys <span id="numValleys"></span>
</label> </label>
<label class="checkbox" for="panelsVisible"> <label class="checkbox" for="panelsVisible">
<input id="panelsVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span> <input id="panelsVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span>
Facet Creases Facet Creases <span id="numFacets"></span>
</label> </label>
<label class="checkbox" for="passiveEdgesVisible"> <label class="checkbox" for="passiveEdgesVisible">
<input id="passiveEdgesVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span> <input id="passiveEdgesVisible" data-toggle="checkbox" class="custom-checkbox layersSelector" type="checkbox"><span class="icons"><span class="icon-unchecked"></span><span class="icon-checked"></span></span>
Undriven Edges Undriven Edges <span id="numPassive"></span>
</label> </label>
</div> </div>
</div><br/> </div><br/>
......
...@@ -220,6 +220,11 @@ function initPattern(globals){ ...@@ -220,6 +220,11 @@ function initPattern(globals){
var allEdges = outlines.concat(mountains).concat(valleys).concat(cuts).concat(triangulations); var allEdges = outlines.concat(mountains).concat(valleys).concat(cuts).concat(triangulations);
$("#numMtns").html("(" + mountains.length + ")");
$("#numValleys").html("(" + valleys.length + ")");
$("#numFacets").html("(" + triangulations.length + ")");
$("#numPassive").html("(" + outlines.length + ")");
polygons = findPolygons(allEdges); polygons = findPolygons(allEdges);
var faces = triangulatePolys(polygons, allEdges); var faces = triangulatePolys(polygons, allEdges);
......
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