C++ Triangulation library in a Java Application -


i'm implementing algorithm pathfinding variant of a* (hpa*) triangulated search space. i've been making java application , have written amount of code, found c++ library takes care of triangulations project. have several options i'm not sure should do: convert library java or integrate c++ code java library. rewrite code in c++ i'm not familiar language.

this application tests performance of algorithm paper i'm writing doesn't need portable. think best option is?

if want call c++ code java, read on java native interface (jni) coding conventions.

but generally, unless have extremely reason cross languages, it's more trouble it's worth. how complicated triangulation code? if it's less few hundred lines, i'd suggest reimplementing; if it's more few thousand, using library may justified should check whether there's java library available or if has written appropriate jni glue code.


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -