Git Product home page Git Product logo

poly2tri's Introduction

Since there are no Input validation of the data given for triangulation you need to think about this.

  • Poly2tri was developed for use with simple polygons supporting simple holes and refinement points(steiner points).

  • Does not support repeat points within epsilon.

  • Points to close to an edge(constraint) can cause floating point issues due to the three points forming a degenerate triangle.

  • If you have a cyclic function that generates random points make sure you don't add the same coordinate twice.

  • If you are given input and aren't sure same point exist twice you need to check for this yourself.

  • Interior holes must not touch other holes, nor touch the polyline boundary

  • Use the C++ library in this order:

    1. Initialize CDT with a simple polyline (this defines the constrained edges)
    2. Add holes if necessary (also simple polylines)
    3. Add Steiner points if necessary
    4. Triangulate

Make sure you understand the preceding notice before posting an issue. If you have an issue not covered by the above, include your data-set with the problem.

If you need to make your polygons simple for use with poly2tri take a look at the clipper lib.

The only easy day was yesterday; have a nice day.

poly2tri's People

Contributors

greenm01 avatar iynaur avatar googlecodeexporter avatar

Watchers

James Cloos avatar

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.