
This is a 2D demo implementation of alexaschor/JuliaShapeModulus. For the code used to generate the examples in the paper, check out that repo.
Requires OpenGL and GLUT. ./bin/interactive
uses ANTTweakBar, but that's bundled with this code and should just build with make
.
git clone https://github.com/alexaschor/DQM2D
cd DQM2D
mkdir bin
- If on Linux, go to
include.mk
, comment out the Mac part and uncomment the Linux part. For either platform you may need to change CXX to whicheverg++
you want to use. make
./bin/svgToPoly data/XXX.svg data/XXX.poly
./bin/polyToSDF data/XXX.poly <RESOLUTION> data/XXX.sdf
Uses a "dead reckoning" transform, so I don't think it's exact but it works fine for this purpose.
./bin/ppmToSDF data/XXX.ppm <OUTPUT RESOLUTION> data/XXX.sdf
- To run
./bin/interactive
, you'll need to set yourDYLD_LIBRARY_PATH
on Mac, orLD_LIBRARY_PATH
on Linux.make setPath
inprojects/interactive
will generate the command you need to run before executing./bin/interactive
./bin/interactive data/XXX.sdf
- Most of the controls are on-screen and the rest are from
fieldViewer3D
. LMB to pan, RMB and drag to zoom. N togges auto-normalizing, and arrow keys adjust scale/bias. By default there's just the one config window open, but there's a few more minimized to the bottom left of the viewing window.