PDA

View Full Version : Delete unwanted points



Whit
08-15-2007, 03:05 PM
When I use mergepols(), any points that aren't in the new polygon are left in place. I'm looking for a simple way to get rid of those "left over" points.

I'm looking at what seem to be overly complicated ways, such as:

START PSEUDO CODE

Get info about currently selected polygons

Create list (pointWasInPolyList) of all points making up currently selected polygons

selmode(DIRECT); // so we work only with selected polygons
mergepols(); // merge all selected polygons

Get ID of currently selected polygon // just one, the result of mergepols()

Create list (pointIsInPolyList) of all points making up currently selected polygon

Create list (pointsToDeleteList) of points that are in pointsWasInPolyList but not in pointIsInPolyList

delete pointsToDeleteList

END PSEUDO CODE

Is there a simpler way to get rid of those points?

Thanks.

--Whit