Path: news.mathworks.com!not-for-mail
From: "Pinpress" <nothing@nothing.edu>
Newsgroups: comp.soft-sys.matlab
Subject: best way to do this?
Date: Mon, 8 Dec 2008 16:57:01 +0000 (UTC)
Organization: Dartmouth College
Lines: 5
Message-ID: <ghjjkt$8ki$1@fred.mathworks.com>
Reply-To: "Pinpress" <nothing@nothing.edu>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1228755421 8850 172.30.248.35 (8 Dec 2008 16:57:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 8 Dec 2008 16:57:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 29342
Xref: news.mathworks.com comp.soft-sys.matlab:505644


Hi all,

Suppose I have a closed surface which is represented as a triangular mesh (all triangles have an outward pointing surface normal), how do I efficiently test whether a given point is inside or outside it? For example, the closes surface can be generated from an isosurface. Is there an existing Matlab code to achieve this? Please note that in general I have a lot of points to test, so efficiency is important. 

Thanks a lot.