Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Help encapsulating straight_skeleton_2 functionality to interface with Java

Subject: CGAL users discussion list

List archive

[cgal-discuss] Help encapsulating straight_skeleton_2 functionality to interface with Java


Chronological Thread 
  • From: NickParkerPrint <>
  • To:
  • Subject: [cgal-discuss] Help encapsulating straight_skeleton_2 functionality to interface with Java
  • Date: Tue, 23 Dec 2014 10:25:00 -0800 (PST)

Hi everyone,

I have a Java program working with strictly simple polygons with holes as
described in the CGAL docs for straight_skeleton_2
http://doc.cgal.org/latest/Straight_skeleton_2/index.html, and I need to
create several offsets from each of these polygons. I'm hoping to somehow
interface CGAL's functionality with my Java project.

I've read a little about SWIG and JNI, but I haven't even got CGAL to
install yet, and don't really know how to approach the issue. I'd rather not
ship all of Boost and the other ~15gb of CGAL dependencies with my currently
tiny code base.

Also, since I need to create multiple offsets from each polygon with holes
(and I do care about speed), I need to reuse the skeleton somehow. I'm
thinking either I could add a function to the CGAL side of things to take in
a set of offset distances and return a set of offset polygons, or I could
have a sort of "skeleton library" which I could add a polygon-with-holes to
and get back a unique id from some hash function so that when I want offsets
of that polygon I can tell the CGAL side which skeleton to generate from.

Sorry this is somewhat unstructured, I can't find any good implementations
of offset polygons in native Java. CampSkeleton gets close, but can't handle
parallel edge collisions or simultaneous collisions of >3 edges, both of
which happen all the time in my project.

Thanks for any guidance,
-Nick Parker



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Help-encapsulating-straight-skeleton-2-functionality-to-interface-with-Java-tp4660256.html
Sent from the cgal-discuss mailing list archive at Nabble.com.


  • [cgal-discuss] Help encapsulating straight_skeleton_2 functionality to interface with Java, NickParkerPrint, 12/23/2014

Archive powered by MHonArc 2.6.18.

Top of Page