Path: news.mathworks.com!not-for-mail
From: "Ingo Schupp" <Douba.leave_this_out@Douba.de>
Newsgroups: comp.soft-sys.matlab
Subject: Re: 3D-plotting of quadric surfaces?
Date: Mon, 28 Jan 2008 12:23:02 +0000 (UTC)
Organization: Otto-von-Guericke-Universit&#65533;t Magdeburg
Lines: 18
Message-ID: <fnkhf6$kvm$1@fred.mathworks.com>
References: <2008012813005216807-bastian@beckspcde>
Reply-To: "Ingo Schupp" <Douba.leave_this_out@Douba.de>
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 1201522982 21494 172.30.248.35 (28 Jan 2008 12:23:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Mon, 28 Jan 2008 12:23:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1261397
Xref: news.mathworks.com comp.soft-sys.matlab:447908



Hello Bastian Stahmer,

this is not a complete solution, but maybe an idea that 
will help you.

Try to parametrize your shape on its surface by placing a 
new coordinate system on it. For instance, on a torus, you 
could use, say, r and s, r going along the torus and s 
going through its hole and round.

If you can do that for your general form and determine the 
respective x, y and z for your new coordinates, then you 
can use surf() to plot a parametric 2D surface in 3D space. 
I did that for some tori. If you want, I can email you the 
m-files.

Douba