Skip to content

zddhub/trianglemesh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

This is a powerful 3d line drawing extract framework

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages