Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Amanda Ghassaei
OrigamiSimulator
Commits
41c51a9d
Commit
41c51a9d
authored
May 12, 2017
by
amandaghassaei
Browse files
show num of each edge type
parent
b0e02a91
Changes
2
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
41c51a9d
...
...
@@ -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/>
...
...
js/pattern.js
View file @
41c51a9d
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment