Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: How to get the intersection point coordinate between polygon and segment
Date: Sat, 13 Dec 2008 15:24:02 +0000 (UTC)
Organization: Xoran Technologies
Lines: 6
Message-ID: <gi0k2i$bsh$1@fred.mathworks.com>
References: <gi0epq$lk3$1@fred.mathworks.com> <gi0inj$t2m$1@fred.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1229181842 12177 172.30.248.37 (13 Dec 2008 15:24:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sat, 13 Dec 2008 15:24:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1440443
Xref: news.mathworks.com comp.soft-sys.matlab:506739


> But I have many segment and many triangle.I must use it in mex file.Thank you all.

Why does it have to be a mex file? Certainly not just to avoid for loops.

Once you have an mfile that does it for one segment/triangle, you can do it for many using cellfun.