{"id":21347286,"url":"https://github.com/zddhub/trianglemesh","last_synced_at":"2025-07-12T17:31:55.242Z","repository":{"id":17845144,"uuid":"20760849","full_name":"zddhub/trianglemesh","owner":"zddhub","description":"This is a powerful 3d line drawing extract framework","archived":false,"fork":false,"pushed_at":"2018-08-10T09:42:55.000Z","size":19222,"stargazers_count":38,"open_issues_count":1,"forks_count":18,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T23:09:58.278Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zddhub.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-06-12T08:55:00.000Z","updated_at":"2025-03-28T05:42:46.000Z","dependencies_parsed_at":"2022-09-01T01:20:48.512Z","dependency_job_id":null,"html_url":"https://github.com/zddhub/trianglemesh","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zddhub/trianglemesh","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Ftrianglemesh","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Ftrianglemesh/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Ftrianglemesh/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Ftrianglemesh/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zddhub","download_url":"https://codeload.github.com/zddhub/trianglemesh/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zddhub%2Ftrianglemesh/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265025500,"owners_count":23699759,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-22T02:13:36.735Z","updated_at":"2025-07-12T17:31:54.630Z","avatar_url":"https://github.com/zddhub.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"Line Drawings View Tool [![Build Status](https://travis-ci.org/zddhub/trianglemesh.svg?branch=master)](https://travis-ci.org/zddhub/trianglemesh) \n=======================\n\nThis 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/`).\n\n![line drawings](data/teddy_line_drawings.gif \"Line drawings\")\n\n\nDemo\n====\n\nIn [my demo](http://opensse.com), I used 102 viewpoints on globe to project line drawings.\n\n### View points(red points)\n\n![view points](data/viewpoints.png)\n\n### Model\n\n![teddy](data/teddy.png)\n\n### Line drawings images\n\n![line drawings](data/teddy_line_drawings.png)\n\n\nCompile\n=======\n\n```shell\nmkdir release; cd release\nqmake ../trianglemesh.pro -o Makefile\nmake\n```\n\nYou will get your executable tool under `bin` folder.\n\nUsage\n=====\n```shell\ngen_view_image modelfile xfdir viewnum imagedir\n```\nexample:\n```shell\nmkdir teddy_images\n./gen_view_image ../../data/teddy.off ../../data/view/ 102 teddy_images\n```\n\nSupport for OpenSSE\n===================\n\nThere 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:\n\n```sh\n./linedrawing_project.sh -d ~/Database/SHREC12 -p *.off\n```\n\nTroubleshooting\n===============\n\n* Compile error on macOS like below:\n\n```sh\n.../clang_64/lib/QtCore.framework/Headers/qsystemdetection.h:197:12: fatal error: 'TargetConditionals.h' file not found\n```\n\nHow to fix:\n\n```\nmacx : QMAKE_MAC_SDK=macosx10.13 # Change this to your macOS version if you are using macOS\n```\n\nThanks\n======\n- [Szymon Rusinkiewicz](http://www.cs.princeton.edu/~smr/)\n- [Tilke Judd](http://people.csail.mit.edu/tjudd/)\n\nLicense\n=======\n\nCode is under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).\n\nDonate\n======\n\nI accept tips through [Alipay](http://img.blog.csdn.net/20140506233949640). Scan below qr code to donate:\n\n![Alipay](data/alipay.png \"Donation\").\n\nContact me\n==========\n\nIf you have any question or idea, please [email to me](mailto:zddhub@gmail.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzddhub%2Ftrianglemesh","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzddhub%2Ftrianglemesh","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzddhub%2Ftrianglemesh/lists"}