https://github.com/zddhub/trianglemesh
This is a powerful 3d line drawing extract framework
https://github.com/zddhub/trianglemesh
Last synced: 11 months ago
JSON representation
This is a powerful 3d line drawing extract framework
- Host: GitHub
- URL: https://github.com/zddhub/trianglemesh
- Owner: zddhub
- License: other
- Created: 2014-06-12T08:55:00.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2018-08-10T09:42:55.000Z (almost 8 years ago)
- Last Synced: 2025-04-06T23:09:58.278Z (about 1 year ago)
- Language: C++
- Size: 18.3 MB
- Stars: 38
- Watchers: 7
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Line Drawings View Tool [](https://travis-ci.org/zddhub/trianglemesh)
=======================
This project serves [OpenSSE](https://github.com/zddhub/opensse), that gets line-drawing images for each model (support *.off and *.obj) using viewpoint matrix(under `../data/view/`).

Demo
====
In [my demo](http://opensse.com), I used 102 viewpoints on globe to project line drawings.
### View points(red points)

### Model

### Line drawings images

Compile
=======
```shell
mkdir release; cd release
qmake ../trianglemesh.pro -o Makefile
make
```
You will get your executable tool under `bin` folder.
Usage
=====
```shell
gen_view_image modelfile xfdir viewnum imagedir
```
example:
```shell
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](https://github.com/zddhub/opensse/wiki/How-to-train-data#get-line-drawing-views), Use it to get 102 view images for each modal. After you compile code, and return root path to run:
```sh
./linedrawing_project.sh -d ~/Database/SHREC12 -p *.off
```
Troubleshooting
===============
* Compile error on macOS like below:
```sh
.../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
======
- [Szymon Rusinkiewicz](http://www.cs.princeton.edu/~smr/)
- [Tilke Judd](http://people.csail.mit.edu/tjudd/)
License
=======
Code is under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
Donate
======
I accept tips through [Alipay](http://img.blog.csdn.net/20140506233949640). Scan below qr code to donate:
.
Contact me
==========
If you have any question or idea, please [email to me](mailto:zddhub@gmail.com).