Is there a Java geometry library? (not JTS)

I want to be equivalent to CGAL (c) – I want convex partitions of polygons or at least triangulation It must also be free The previous question raised JTS, but it does not seem to have these functions

Solution

JTS supports Delaunay triangulation, but does not limit triangulation (hole):

For constrained Delaunay triangulation, you can use poly2tri It works quite well, but you can't use hole triangles. Holes touch the outline or touch another polygon

At present, I use OpenGL tesselator (GLUT) and Java wrapper jogl( http://jogamp.org/ )Triangulate You must perform the correct callback and do some trivial things there

They don't meet all (my) needs, but so far I haven't found a better one

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>