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 / 4192
4191  |  4193
Special: 
[DAT] (requires LDraw-compatible viewer)
Subject: 
Re: More MPD
Newsgroups: 
lugnet.cad.dev
Date: 
Wed, 22 Mar 2000 14:53:46 GMT
Viewed: 
3426 times
  
Lars:

> 1. Are the files in an MPD public or private?

Public. - Mostly due to the need to be able to create a set
of LDraw readable files.

> Consider this example with three files:
> 
> town.dat
>   1 16 -40 0 0  1 0 0  0 1 0  0 0 1 house1.mpd
>   1 16  40 0 0  1 0 0  0 1 0  0 0 1 house2.mpd
> 
> house1.mpd
>   0 FILE house1.dat
>   1 4 0 0 0 1 0 0 0 1 0 0 0 1 3003.DAT
>   1 4 0 -24 0 1 0 0 0 1 0 0 0 1 roof.dat
>   0 FILE roof.dat
>   1 16 0 0 0 1 0 0 0 1 0 0 0 1 3043.DAT
> 
> house2.mpd
>   0 FILE house2.dat
>   1 2 0 0 0 1 0 0 0 1 0 0 0 1 3003.DAT
>   1 2 0 -8 0 1 0 0 0 1 0 0 0 1 roof.dat
>   0 FILE roof.dat
>   1 16 0 0 0 1 0 0 0 1 0 0 0 1 3068.DAT
> 
> For this to work as expected, "local files" in an MPD must be private,
> and cannot be referenced by other "real files".

Since the construction of the MPD files is based on a
collection of DAT files, there can only be one "roof.dat"
file, ...

unless you keep the DAT files for the two houses in
different directories.

> 2. I suggest BuildMpd and M-Peedy should be able to handle MPD's too
> as input files, and SplitMPD and M-Peedy should be able to split an MPD
> correctly into the original files, both MPD and DAT.
> You can use the town.dat above for test ;-)

OK. The transformation I imagine would result in:

  0 FILE town.dat
  1 16 -40 0 0  1 0 0  0 1 0  0 0 1 house1/house1.dat
  1 16  40 0 0  1 0 0  0 1 0  0 0 1 house2/house2.dat
  0 FILE house1/house1.dat
  1 4 0 0 0 1 0 0 0 1 0 0 0 1 3003.DAT
  1 4 0 -24 0 1 0 0 0 1 0 0 0 1 house1/roof.dat
  0 FILE house1/roof.dat
  1 16 0 0 0 1 0 0 0 1 0 0 0 1 3043.DAT
  0 FILE house2/house2.dat
  1 2 0 0 0 1 0 0 0 1 0 0 0 1 3003.DAT
  1 2 0 -8 0 1 0 0 0 1 0 0 0 1 house2/roof.dat
  0 FILE house2/roof.dat
  1 16 0 0 0 1 0 0 0 1 0 0 0 1 3068.DAT
  0 NOFILE

As you can see will this mean that we will have to change
some file names in the files, but it should be close to
trivial using a list of the files included in the MPD files.

> 3. Can I generally use the NOFILE meta command to skip the rest of the file,
> i.e. also for ordinary DAT files?

No. There can, theoretically, come a FILE meta-command after
a NOFILE meta-command.

> Should it be renamed to EOF/ENDOFFILE?

Due to its slightly different effect, no.

Play well,

Jacob

------------------------------------------------------------
--  E-mail:               sparre@cats.nbi.dk              --
--  Web...:     <URL: http://hugin.ldraw.org/LEGO/ >      --
------------------------------------------------------------



Message is in Reply To:
  More MPD  [DAT]
 
1. Are the files in an MPD public or private? Consider this example with three files: town.dat 1 16 -40 0 0 1 0 0 0 1 0 0 0 1 house1.mpd 1 16 40 0 0 1 0 0 0 1 0 0 0 1 house2.mpd house1.mpd 0 FILE house1.dat 1 4 0 0 0 1 0 0 0 1 0 0 0 1 3003.DAT 1 4 0 (...) (27 years ago, 22-Mar-00, to lugnet.cad.dev)

4 Messages in This Thread:



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

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