Comments (3)
Sorry -not a bug - the library is intact - it appears to be a floating point problem: if I pass integers then everything works! Thanks for your work on this :)
from poly-decomp.js.
Out of curiosity - what code did you run to get this floating point problem?
from poly-decomp.js.
It was a simple four-vertex array, with values like 0.499995 in the console. I've just tried to repeat the problem but no luck. My 'fix' was to multiply the values and use Math.floor() prior to sending the array to polygonDecomp(). Not sure what might have 'fixed' it as it doesn't appear to be my using integers...
from poly-decomp.js.
Related Issues (14)
- Duplicate point not removed HOT 1
- clockwise order info HOT 2
- Shapes return an empty array HOT 1
- Could support a polygon with some holes ? HOT 5
- quickDecomp sometimes returns incorrect results altough isSimple() returns true HOT 11
- infinite loop in decomp HOT 2
- Does it decompose polygons with holes? HOT 4
- update dependencies?
- Self overlapping polygon
- Online demo can't run 'Peaks'
- Latest decomp version does not return proper results for path.
- Edge Case Issue - Caused by unsafe initilization of lowerIndex/upperIndex vars in QuickDecomp
- QuickDecomp method extension?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from poly-decomp.js.