-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add examples for triangulate and urquhart
- Loading branch information
Showing
5 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#!/bin/bash | ||
set -o errexit | ||
set -o pipefail | ||
set -o nounset | ||
# We _want_ to clobber any existing stash files in /tmp | ||
set +o noclobber | ||
|
||
# BEGIN TRIANGULATE_SNIPPET | ||
point-cloud --seed 11878883030565683752 --points 20 --scale 200 | | ||
triangulate | sort | tee /tmp/triangulation.wkt | | ||
wkt2svg --output ./examples/urquhart/triangulation.svg | ||
# END TRIANGULATE_SNIPPET | ||
extract_snippet TRIANGULATE_SNIPPET | ||
|
||
# BEGIN URQUHART_SNIPPET | ||
point-cloud --seed 11878883030565683752 --points 20 --scale 200 | | ||
urquhart | sort >/tmp/urquhart.wkt | ||
{ | ||
echo "STROKE(gray)" | ||
echo "STROKEDASHARRAY(6)" | ||
# the triangulation minus the urquhart graph | ||
comm -23 /tmp/triangulation.wkt /tmp/urquhart.wkt | ||
echo "STROKE(black)" | ||
echo "STROKEDASHARRAY(none)" | ||
cat /tmp/urquhart.wkt | ||
} | wkt2svg --output ./examples/urquhart/urquhart.svg | ||
# END URQUHART_SNIPPET | ||
extract_snippet URQUHART_SNIPPET | ||
|
||
set -o noclobber |
File renamed without changes
File renamed without changes