To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.cad.devOpen lugnet.cad.dev in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 CAD / Development / 2859
2858  |  2860
Subject: 
Re: DAT format question
Newsgroups: 
lugnet.cad.dev
Date: 
Mon, 20 Sep 1999 16:48:16 GMT
Viewed: 
362 times
  
Steve Bliss wrote in message <37e66009.245335149@lugnet.com>...
On Sun, 19 Sep 1999 01:22:43 GMT, "Gary Williams" <graywolf@pcpros.net>
wrote:

I know that models can contain subassemblies (if MPD format), and • primitives
can contain subprimitives, but can parts contain subparts?  I'm finalizing
the object hierarchy for my Lego CAD program and need to know whether I
should support this or not.

Oops.  One more thing: models can contain subassemblies, whether or not the
author uses the MPD format.  MPD is just a convenience for distributing
multi-file models.  Heck, I've got one model which uses about 85 sub-model
files.


I was aware of this feature.  I meant to say 'reference' instead of
'contain', and I shouldn't have mentioned MPD there.  Sorry for the
confusion.

Actually, the LDraw specification (if there were such a thing) doesn't care
at all about primitives, parts, models, subparts, and etc.  It just cares
about dat-files, and it includes a list of places to look for these files.


I intend to document the format (both DAT and MPD) on my site this week.
Then I'll invite everyone to critique it.  Then maybe it could be included
in ldraw.org's reference section.

So I could write a file which references a file in my models\ directory,
store this new file in parts\, and LDraw would render the whole schmear
without batting an eye.


I'm taking an extremely object-oriented approach to this and am creating
separate object classes to represent models, parts, and primitives.  They'll
be derived from the same base class and share a common parsing engine, but
the program will be less complex overall by breaking things out this way.
There's a diagram of my object relationship model on my site but that's only
half as complex as what it will eventually be.  Not shown are most of the
inheritance relationships.  I'll be updating that tonight.

The class hierarchy allows for as many nested models/parts/primitives as the
machine's memory will allow.

I really appreciate all the feedback I've been getting--it serves as
motivation to work on the project. :)

Thanks,

-Gary



Message is in Reply To:
  Re: DAT format question
 
(...) Oops. One more thing: models can contain subassemblies, whether or not the author uses the MPD format. MPD is just a convenience for distributing multi-file models. Heck, I've got one model which uses about 85 sub-model files. Actually, the (...) (25 years ago, 20-Sep-99, to lugnet.cad.dev)

27 Messages in This Thread:













Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR