This is a fantastic library :D I think there would be many applications for it
in a web context. Have you considered what it would take to implement it in
I took a quick stab at using ScriptSharp to translate the C# code to
still have a couple of bugs to solve there but generally it work.If you wanna
help with it to get it into JS you can go ahead .You can fork it from here:
And yes ,it won't help you using all sorts of automatics conversion tools.The
clipper has data structures like Int64 or Int128 which are non existent in JS
or AS .I just removed them altogether .Int32 should be enough for most cases
unless you work on smth related to geography or huge maps .
I'm stretched maintaining the current Delphi, C# and C++ versions of Clipper
without trying to learn another language, and then translate and support that
one too. Nevertheless, I'd be delighted if someone else was prepared to
translate and maintain a Java version of Clipper.
Thanks for the suggestion @sasmaster.
@angusj, I can't believe you've ported it to so many languages as it is :D
It's really an amazing accomplishment to implement and maintain such a complex
program in so many formats. I am very impressed by your work and I thank you
for making it available.
..Anyone has enough courage/guts to translate it into that venerable old
language called C and maintain it in step
the flood of new releases Angush slogs over.
Hello all coders!
Please see: https://sourceforge.net/projects/jsclipper/
Wikipage with step-by-step tutorial: https://sourceforge.net/p/jsclipper/wiki/Home/
Presentation of Demo Program including tens of sample polygons: https://sourceforge.net/p/jsclipper/wiki/Main_Demo/
EDIT: Added a live demo to get hands right on it: http://jsclipper.sourceforge.net/18.104.22.168/main_demo.html
(Demo works in all major modern browsers, even in IE9+. It has also Import-Export feature. Import feature is in Custom Polygons and Export is in Polygon Explorer.)
Well done Timo!
"window is not defined". Any idea why this happen?
I think I solved the problem. Changing all ocurrences of "window" for "self" seems to work, as according to this link: