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

show num of each edge type

parent b0e02a91
......@@ -586,19 +586,19 @@
<div id="edgeVisOptions" class="indent">
<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>
Mountains
Mountains <span id="numMtns"></span>
</label>
<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>
Valleys
Valleys <span id="numValleys"></span>
</label>
<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>
Facet Creases
Facet Creases <span id="numFacets"></span>
</label>
<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>
Undriven Edges
Undriven Edges <span id="numPassive"></span>
</label>
</div>
</div><br/>
......
......@@ -220,6 +220,11 @@ function initPattern(globals){
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);
var faces = triangulatePolys(polygons, allEdges);
......
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