nakijun / poly2tri

Automatically exported from code.google.com/p/poly2tri
Other
0 stars 0 forks source link

Javascript port #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Just ported the "April 25, 2010" version of the c++ project to javascript.
I attached the source with a small tester to this issue, plus it's
temporarily available to try out here: http://kl223.selfip.org/poly2tri_test/

The javascript port depends on the namespacedotjs project
(http://kl223.selfip.org/poly2tri_test/).
The port was made overnight, so it might contain errors, but it worked
pretty well for me.

Cheers,
Laszlo Kustra

Original issue reported on code.google.com by kl223...@gmail.com on 4 May 2010 at 6:33

Attachments:

GoogleCodeExporter commented 9 years ago
Nice! If you want to host the final code here just let us know and we will 
create a 
mercury repository for you.

Original comment by thahlen@gmail.com on 6 May 2010 at 11:08

GoogleCodeExporter commented 9 years ago
Thanks and I guess I'll be able to maintain the code if needed. (After actually
understanding the algorithm itself...)

Anyway, the namespacedotjs link above was obviously wrong, the right one is
http://code.google.com/p/namespacedotjs/

Cheers,
Laszlo Kustra

Original comment by kl223...@gmail.com on 8 May 2010 at 1:40

GoogleCodeExporter commented 9 years ago
I have added you as a contributor. I have also created a javascript repository 
and 
commited your first release. Tho I took the freedom to separate the third party 
lib 
and the poly2tri script into separate directories ;).

You should now be able to fetch the code from the mercury repository and push 
any 
changes you make.

-Thomas Åhlén

Original comment by thahlen@gmail.com on 8 May 2010 at 3:20

GoogleCodeExporter commented 9 years ago
Wow, you made the port overnight!?  It took me weeks to port Java to C++...

Original comment by mason.gr...@gmail.com on 21 May 2010 at 5:27

GoogleCodeExporter commented 9 years ago
As far as I could see, the C++ source was restructured when ported from java. (I
didn't even realize the java source was written first and the C++ version is a 
port.)
Porting C++ to javascript was pretty straightforward, but yeah, my hands did 
indeed
hurt for a while after all that coding.

Original comment by kl223...@gmail.com on 21 May 2010 at 7:06

GoogleCodeExporter commented 9 years ago
Well, I started the project with Scala, and then Thomas made a number of 
improvements
and algorithm changes with his Java port. From there I decided it would be 
useful to
have a C++ implementation, even though I didn't know C++ very well at the time.
Needless to say, all the pointer management and C++ idiosyncrasies had a high
learning curve that I wrestled with for a few good weeks.  All in all I'm 
certainly
glad I took on the C++ challenge; now I'm using it in all my little game 
projects.

Original comment by mason.gr...@gmail.com on 7 Jun 2010 at 2:02

GoogleCodeExporter commented 9 years ago
Closed

Original comment by mason.gr...@gmail.com on 15 Dec 2010 at 5:52