[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to find points inside a bounding polygon?
- Subject: How to find points inside a bounding polygon?
 
- From: luthi(at)aura.ethz.ch (Martin LUETHI GL A8.1 2-4092)
 
- Date: 26 Mar 1999 22:37:58 +0100
 
- Newsgroups: comp.lang.idl-pvwave
 
- Organization: Swiss Federal Institute of Technology (ETHZ)
 
- Xref: news.doit.wisc.edu comp.lang.idl-pvwave:14112
 
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
-- 
============================================================
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
Switzerland
============================================================