Coder Social home page Coder Social logo

polygon's Introduction

polygon

this is a polygon related library. with this you can generate ramdon polygon, point contain test, polygon clipping, get convex hull etc. cc0. just enjoy it!

polygon's People

Contributors

alexarjing avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

polygon's Issues

License?

First of all, thanks for making this available on github.
What's the license on this code? I wanted to use this to help merge collision boxes in a love game

docs / sources

Hi,

I'm interested in the polybool algorithm. It would be nice if you could add som documentation of usage, limitations and links to sources of the algorithms you use.

Thanks!

trying to do certain things with this, certain overlaps result in strange shapes, hole punching i can't seem to manage

Hi

two squares:
p1{ 100, 100, 200, 100, 200, 200, 100, 200 }
p2{ 150, 100, 250, 100, 250, 200, 150, 200 }

"not" =>

p3{ { 150, 100, 150, 200, 150, 200, 100, 200, 100, 100 }, { 200, 100, 250, 100, 250, 200, 200, 200, 200, 100 } }

I was trying to figure out why this happens, i imagine what I'm doing is bad practise but I still liked to figure it out!

also the "donut", slicing a hole in the middle:

p1 { 100, 100, 200, 100, 200, 200, 100, 200 }
p2 { 120, 120, 180, 120, 180, 180, 120, 180 }
p3 { 100, 100, 200, 100, 200, 200, 100, 200, 120, 120, 180, 120, 180, 180, 120, 180 }

I appreciate for the donut, we perhaps just have to do some work here, it's not gonna be possible to return a triangulate

I was working on a framework and investigating the possibility of dynamic terrain destruction, I have already wrote some polygon reduction code

attached is a very simple testing demo for the latest love 2d version:
polygon-master.zip

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.