This is a powerful 3d line drawing extract framework
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
include
trianglemesh
.gitignore
.travis.yml
LICENSE
README.md
add_license.sh
featurelines.cpp
featurelines.h
linedrawing_project.sh
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
threshdialog.cpp
threshdialog.h
threshdialog.ui
trianglemesh.pro
trimeshview.cpp
trimeshview.h
trimeshview_draw_apparent_ridges.cpp
trimeshview_draw_base.cpp
trimeshview_draw_lines.cpp
trimeshview_draw_ridges_and_valleys.cpp
ui_mainwindow.h
ui_threshdialog.h
ui_threshform.h

README.md

Line Drawings View Tool Build Status

This project serves OpenSSE, that gets line-drawing images for each model (support *.off and *.obj) using viewpoint matrix(under ../data/view/).

line drawings

Demo

In my demo, I used 102 viewpoints on globe to project line drawings.

View points(red points)

view points

Model

teddy

Line drawings images

line drawings

Compile

mkdir release; cd release
qmake ../trianglemesh.pro -o Makefile
make

You will get your executable tool under bin folder.

Usage

gen_view_image modelfile xfdir viewnum imagedir

example:

mkdir teddy_images
./gen_view_image ../../data/teddy.off ../../data/view/ 102 teddy_images

Support for OpenSSE

There is a tool ./linedrawing_project.sh to prepare view images for OpenSSE, Use it to get 102 view images for each modal. After you compile code, and return root path to run:

./linedrawing_project.sh -d ~/Database/SHREC12 -p *.off

Troubleshooting

  • Compile error on macOS like below:
.../clang_64/lib/QtCore.framework/Headers/qsystemdetection.h:197:12: fatal error: 'TargetConditionals.h' file not found

How to fix:

macx : QMAKE_MAC_SDK=macosx10.13 # Change this to your macOS version if you are using macOS

Thanks

License

Code is under the Apache License, Version 2.0.

Donate

I accept tips through Alipay. Scan below qr code to donate:

Alipay.

Contact me

If you have any question or idea, please email to me.