Arrays class and web-export
in
Processing with Other Languages
•
11 months ago
Hi, I'm using processing to implement an algorithm for computing convex hulls. I'm using the class Arrays to sort an array of type Point (a class I created). This work fine with java but as I try to use it with javascript (for web-export), it doesn't work.
Here is my code:
- List<Point> points;
- ...
- void mousePressed() {
- ...
- Point[] arrpoints = new Point[points.size()];
- points.toArray(arrpoints);
- Comp c = new Comp();
- println("work until here");
- Arrays.sort(arrpoints,c);
- println("Never get here");
- ...
- }
- ...
I guess I can't use the Arrays class if I want to web-export ? Any idea ?
Thank you!
ps : Entire code is available here :
www.jermoer.eu/tp2/tp2.pde
1