Path: news.mathworks.com!not-for-mail From: "Robert Phillips" <phillir1@my.erau.edu> Newsgroups: comp.soft-sys.matlab Subject: Generate 3D circle points Date: Tue, 23 Nov 2010 05:23:03 +0000 (UTC) Organization: Embry-Riddle Aeronautical University Lines: 8 Message-ID: <icfj3n$24d$1@fred.mathworks.com> Reply-To: "Robert Phillips" <phillir1@my.erau.edu> NNTP-Posting-Host: webapp-03-blr.mathworks.com Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Trace: fred.mathworks.com 1290489783 2189 172.30.248.38 (23 Nov 2010 05:23:03 GMT) X-Complaints-To: news@mathworks.com NNTP-Posting-Date: Tue, 23 Nov 2010 05:23:03 +0000 (UTC) X-Newsreader: MATLAB Central Newsreader 2598083 Xref: news.mathworks.com comp.soft-sys.matlab:689168 I'm trying to generate the x-, y-, and z-coordinates of a smooth circle (in 3D space). I would like the output to mirror the sphere(n) command, where the coordinates are returned in three matrices that are (n+1)-by-(n+1) in size. I plan to use these points as an input argument for the "InPolyhedronTest" function: <http://www.mathworks.com/matlabcentral/fileexchange/24631> I will test if these generated points lie within a polyhedron. I have 3 orthogonal vectors a, b, and c, whose tails all lie at the same point S. These vectors are not aligned with the "global" coordinate system. I wish for the radius of this generated circle to lie in the plane defined by the b and c vectors. I've searched through the forums and haven't found much that resembles the desired output... Could someone help point me in the right direction?