comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » triangulation tribulation: alpha shape for raster-to-vector shape extraction (sort of a concave hull)
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
triangulation tribulation: alpha shape for raster-to-vector shape extraction (sort of a concave hull) [message #90171] Thu, 05 February 2015 10:11
MarioIncandenza is currently offline  MarioIncandenza
Messages: 231
Registered: February 2005
Senior Member
Hello IDL wizards,

I have a routine that takes XY coordinates and assigns each coordinate a region. The regions are static, but the polygons associated with each cannot be easily extracted. However, certain applications want just that, they want the bounding polygon for each region. The exact definition of a bounding 2-D polygon is an ordered list of vertices with XY coordinates for each.

A convex hull is close-but-not-quite for this purpose, but I think something like an alpha shape would get me there: http://doc.cgal.org/latest/Alpha_shapes_2/index.html

I found a simple application to calculate alpha shapes: http://www.netlib.org/voronoi/hull.html (to compile with a modern gcc, you will also need this patch: http://michalmazurek.eu/programming/convex-hull-computation/).

Now, the 'hull' software computes the Alpha shape and delivers the coordinates of all the *facets*, which is the definition of the alpha shape in N dimensions. However, in 2 dimensions, the facets can be ordered, and the shape can be represented by a series of vertices. But the 'hull' software doesn't do this, it gives the facets in as far as I can tell a random order.

Any triangulation experts have ideas on how to do this?

Regards,

--Edward H.
[Message index]
 
Read Message
Previous Topic: Installation Problem of IDL 8.4 & ENVI 5.2 for Mac OS X Yosemite
Next Topic: help with stopping criterion - use of BREAK

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 09:19:23 PDT 2025

Total time taken to generate the page: 0.00456 seconds