Comments (2)
Fix published as https://pypi.org/project/plotink/1.3.1/
from plotink.
Notes added:
(1) Some standard cases do take four iterations to clip:
https://computergraphics.stackexchange.com/questions/5072/worst-case-scenario-for-cohen-sutherland-line-clipping-algorithm
The original algorithm may be better implemented as integer, to avoid the possibility of fp numeric failures like these.
(2) The clipping code in the repository has been essentially unchanged for three years, and we have not had any prior issue reports that appear to be related to this. Thus, it seems that the failure here is rare in practice. Since the fix does work correctly on it (and adds negligible ovehead for standard cases), we are probably fine for the time being.
from plotink.
Related Issues (12)
- Handle additional cases where page units are not inches or mm
- [STUPID] Where do I put these libs? HOT 3
- Restructure to avoid direct error reporting HOT 8
- ebb_serial: Catch exception in comports HOT 1
- Tag releases HOT 4
- format_hms can return 2:60 HOT 4
- Replace LooseVersion HOT 1
- ebb_serial.py : QG command does not return an "OK".
- How to make a pancake printer into an inkscape extension HOT 3
- Code question HOT 2
- dependency on cspsubdiv HOT 1
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 plotink.