Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Javascript port #5

Closed
GoogleCodeExporter opened this issue Nov 28, 2015 · 7 comments
Closed

Javascript port #5

GoogleCodeExporter opened this issue Nov 28, 2015 · 7 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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

  • Added labels: Type-Other
  • Removed labels: Type-Defect

@GoogleCodeExporter
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

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
Copy link
Author

Closed

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

  • Changed state: Done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant