Path: news.mathworks.com!not-for-mail
From: "Alexander " <alexander.erlich@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: Create a simple 3D object and rotate it - I'm really stuck
Date: Sun, 12 Oct 2008 21:59:02 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <gctrv6$b6$1@fred.mathworks.com>
Reply-To: "Alexander " <alexander.erlich@gmail.com>
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 1223848742 358 172.30.248.35 (12 Oct 2008 21:59:02 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Sun, 12 Oct 2008 21:59:02 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1217178
Xref: news.mathworks.com comp.soft-sys.matlab:494793


Hi, 

after some extensive research on Matlab Central file exchange I have read over many different ways to create a simple 3D object and rotate it - I could really require some "orientation" and some advice on what I should focus.

I would like to do the following things: 

- Create a simple 3D object (like a cylinder - later I'll create more complicated ones) and display it in 3D

- optional: use shading, like Gouraud

- rotate the object using Euler angles 

The problem is: in some of the code I've read, vertices are grouped in patches, but in some code, they're not (just matrices). Some code uses hgtransform to manipulate those "bundled" vertices "as one", some manage the rotation otherwise. There's plenty of transformation and rotation tools on file exchange, but I feel uncomfortable with heavily investigating them before I know there is no native or easier way to perform rotations using Euler angles. 

I use Matlab R2007a.

I'd be grateful for some hints!

Alexander