Run a Triangulate class/library in JS (Delaunay triangulation)

edited September 2018 in JavaScript Mode

Hi

I'd like to have (what is usually known as) a Triangulate library work in JS in order to get a Delaunay triangulation. This request looks quite simple, but after days of wandering on the web, I still couldn't have any sketch run in JS mode.

The funny thing is that some people seem to have overcome that challenge (see http://www.openprocessing.org/sketch/117808 for example). But this is where it gets funny: this online sketch works perfectly fine on my computer. But after downloading it, I can't run it in local JS mode (in Java mode it works fine mind you). For the sake of it, I even tried to upload this sketch (on openprocessing.org) but this wouldn't work either.

Same thing happens with this sketch http://www.openprocessing.org/sketch/10728, except that it is not a class that is used, but a triangulate.jar file.

So my question is twofold: - how come that I can't run downloaded sketches locally in JS, even though they run online just fine? - what should I do to be able to run a sketch using a Triangulate (class or library) in JS, if possible?

Answers

Sign In or Register to comment.