[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to find points inside a bounding polygon?

Dear all

Is there a simple and fast way to find the indices of array elements, which
are inside of a boundary (in 2 dimensions). Let's say coord(npoints, 2) is an
array of coordinates in the plane and bound(nbound, 2) is the array of a
bounday polygon. The coordintes are not on a grid (otherwise one could use
polyfillv (PV-Wave).

Thank you for any suggestion!


Martin Luethi			Tel. +41 1 632 40 92
Glaciology Section		Fax. +41 1 632 11 92
VAW ETH Zuerich			
CH-8092 Zuerich			mail luthi@vaw.baum.ethz.ch