Hi Frank,
Thanks for your answer.
I was interested to see if there were alternatives
to your suggestion below though. As far as I can tell
there is no way to draw directly into a 3D space. We must either
import a 3DMF file or add a shape from a picture.
3DMF seems to have very little support amongst the more common
3D drawing / modelling packages especially on Windows.
In any 3D drawing/modelling package there are tools to start drawing
with such as a line tool, polygone, rectangle, circle etc. If
(hypothetically) one wanted to write a simple 3D drawing app, how
would we offer these tools to a user allowing them to draw a line or a
rectangle in a 3D environment ?
I'm reading in a DXF file (3D) created in AutoCAD / Rhino / SketchUP etc.
Just dealing with lines at the moment which are very simply. The DXF file
format provides the Start XYZ and finish XYZ points of lines. Obviously
numerous lines go to make up a box, or more complex 3D shapes.
I'd like to now draw these to screen to view the recreated shapes
in a 3D environment, just as they look in AutoCAD or SketchUP
<http://www.sketchup.com/>.
Also, I have a package which creates and manipulates parametric
cabinets for the cabinet making and kitchen industries. I'd like to
present these on screen in 3D, but have thus far not found a way
to do it. ( without some very long winded and complex work around )
Can anyone shed more light on this ?
Thanks very much.
Barney
on 6/1/05 2:48 AM, Frank Bitterlich at bitterlich at gsco dot de wrote:
> 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 ?
_______________________________________________
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>
|