Path: news.mathworks.com!not-for-mail
From: <HIDDEN>
Newsgroups: comp.soft-sys.matlab
Subject: Re: Plotting circle tangent to a curve in 3d
Date: Fri, 2 Mar 2012 01:41:12 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 8
Message-ID: <jip8fo$p8k$1@newscl01ah.mathworks.com>
References: <jio009$84g$1@newscl01ah.mathworks.com> <jiomnj$t63$1@newscl01ah.mathworks.com> <jiosj4$k5c$1@newscl01ah.mathworks.com>
Reply-To: <HIDDEN>
NNTP-Posting-Host: www-06-blr.mathworks.com
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: newscl01ah.mathworks.com 1330652472 25876 172.30.248.38 (2 Mar 2012 01:41:12 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Fri, 2 Mar 2012 01:41:12 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1187260
Xref: news.mathworks.com comp.soft-sys.matlab:759541

"Edward Tan" <octrs@hotmail.com> wrote in message <jiosj4$k5c$1@newscl01ah.mathworks.com>...
>     Thank you very much for your help. It works and thank you for the detail explanation.
> "Roger Stafford" wrote in message <jiomnj$t63$1@newscl01ah.mathworks.com>...
> >  N = dot(P10,P10)*P20-dot(P20,P20)*P10; % <-- Approx. tangent direction
- - - - - - - - -
  I should have explained what sort of approximation to the curve tangent direction the vector N is.  It points along the line tangent to the circle at P0 which passes through the three points P1, P0, and P2.  In case these are colinear and no circle is possible it is just the direction along their common line.  It is assumed none of the three points coincide.

Roger Stafford