GithubHelp home page GithubHelp logo

megayeye / acd2d Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmlien/acd2d

0.0 1.0 0.0 1.62 MB

Approximate Convex Decomposition of Polygons

License: MIT License

Makefile 0.56% C++ 78.72% C 20.64% Objective-C 0.08%

acd2d's Introduction

Approximate Convex Decomposition of Polygons

What is this:

C++ source code for generating convex approximations of polygons.

Compiling options

make
make lib
make clean

Command line options:

acd2d_gui [options] simple1.ply

options:

-t value            concavity tolerance in the final decomposition
-m value            specify types of measurements, including sl (straightline), shortestpath (sp), hybrid1 or hybrid2
-a  value           control cut selection. Large value of "a" biases to cuts with large concavity
-b  value           control cut selection. Large value of "b" biases to cuts with short length
-g                  disable OpenGL 
-s                  save decomposition when OpenGL GUI is disabled
-ps                 save decomposition to postscript (PS) file (when GUI is disabled)

GUI options (press key):

d:                  decompose once
D:                  decompose all
n:                  show/hide normal direction 
h:                  show/hide convex hulls
r:                  reset camera
space bar:          reload polygon
s:                  save decomposition
p:                  save rendering to PS file
+/-:                zoom in/out
arrow keys:         translate

-- Report bugs to: Jyh-Ming Lien [email protected]

Publications

  • Approximate Convex Decomposition of Polygons, Jyh-Ming Lien, Nancy M. Amato, Computational Geometry: Theory & Applications. Also, In Proc. ACM Symp. Comput. Geom., pp. 17-26, Brooklyn, New York, Jun 2004.

  • Approximate Convex Decomposition, Jyh-Ming Lien, Nancy M. Amato, In Proc. ACM Symp. Comput. Geom., pp. 457-458, Brooklyn, New York.

Project webpage

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.