realbasic-nug
[Top] [All Lists]

Re: Draw a line in 3D space

To: REALbasic NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Draw a line in 3D space
From: Frank Bitterlich <bitterlich at gsco dot de>
Date: Wed, 5 Jan 2005 14:48:34 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BE01CEBA dot D52E%barney at custombased dot com>
Hi Barney,

I'm not exactly a 3D specialist, but until someone with real knowledge speaks up, here's my comment:

A line is a one-dimensional object, and as such doesn't exist in a RB3DSpace. What you want is probably a (very narrow) cylinder, I suggest you create one in any 3D program (like Joe Strout's "Meshwork"), an import that as an Object3D (via .AddShapeFromFile()). The simply rotate and transform it using the Quaternion and Vector functions of RB.

Cheers,
   Frank+++


Am 05.01.2005 um 05:04 schrieb Barney:

Hi,

Given a start point X,Y,Z and an end point X,Y,Z of a line...

What's the best way to go about drawing this into
a 3D space so it can be viewed on screen, rotated, orbited around
etc.

Just curios to know how others might go about this ?

--

Günter Schmidt & Co. oHG
Frank Bitterlich             eMail: bitterlich at gsco dot de
Schlosserstr. 4              WWW:   http://www.gsco.de/
D-60322 Frankfurt            Tel.:  069 / 156809-29
GERMANY                      Fax:   069 / 156809-28

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>