Subject:
|
Comprehensive meta-command list
|
Newsgroups:
|
lugnet.cad.dev
|
Date:
|
Sun, 3 Oct 1999 04:20:30 GMT
|
Viewed:
|
471 times
|
| |
| |
I'm attempting to compile a list of all meta-commands...did I miss anything?
Current (From the LDraw FAQ):
0 <description>
If the first line of the file is a comment, it's assumed to be the
description of the file.
0 STEP
Used to indicate the end of a step, and save a bitmap. Also pause until the
user presses 'enter'.
0 WRITE (PRINT) <text>
Used to display a message.
0 CLEAR
Used to clear the screen.
0 PAUSE
Used to pause until the user presses 'enter'.
0 SAVE
Used to save a bitmap.
MPD:
0 FILE <filename>
Used to indicate the beginning of a subassembly that may be referenced as
any external file normally would be.
Supported by LDLite:
0 COLORNAME <name> <index>
Used to name a color.
0 POINT <name> <x> <y> <z>
Used to define a point.
0 MATRIX <name> <a...i>
Used to define a matrix.
0 COLOR (COLOUR) <index> <name> <edge color> <r> <g> <b> <alpha> <d_r> <d_g>
<d_b>
Used to define a color.
0 TRANSLATE { <x> <y> <z> | END }
Used to translate everything until the END is encountered.
0 ROTATE { <angle> <roll> <yaw> <pitch> | END } (Four angles? What's the
first one for?)
Used to rotate everything until the END is encountered.
0 SCALE { factor | END }
Used to scale everything until the END is encountered.
0 TRANSFORM { <x...z, a...i> | END }
Used to apply an orientation matrix to everything until the END is
encountered.
(Can the orientation matrix be a named matrix?)
Proposed:
0 FACE { CW | CCW | DOUBLE-SIDED | UNKNOWN }
Used to indicate the vertex order for all polygon definitions that follow.
Assumed UNKNOWN until this line is encountered.
0 INVERT
0 INVERT END (only needed if 0 INVERT has a persistent meaning)
Used to invert sub-parts / primitives that are referenced between the two
commands so that inside and outside faces are to be reversed from the way
they're actually represented in their original definition. Used to allow
rendering routines to employ backface culling.
These may be needed if there's no way to invert an asymmetrical part simply
by manipulating its orientation matrix alone.
If an INVERT is nested directly or indirectly within another INVERT, then
the second one cancels the first until the next INVERT END is encountered.
WizardCAD will support all of these.
I still expect to have a beta version (0.5) ready around the beginning of
November.
-Gary
|
|
Message has 4 Replies: | | Re: Comprehensive meta-command list
|
| Gary Williams: (...) Yes, but I don't think they are well known anyway: 0 TITLE <description> is an alternative to just using the first line in a file for the description of the file. 0 NOFILE terminates a model in a MPD file (so does another FILE (...) (25 years ago, 3-Oct-99, to lugnet.cad.dev)
| | | Re: Comprehensive meta-command list
|
| Gary Williams wrote in message ... (...) No, never needed, since "0 INVERT" is a toggle! (...) Since INVERT is directly related to the CW and CCW parameters of the FACE meta-command, why not let it be yet another parameter to FACE ? I think the (...) (25 years ago, 4-Oct-99, to lugnet.cad.dev)
| | | Re: Comprehensive meta-command list
|
| There will be support added for "0 INCLUDE filename.dat" in the next release, which will insert the text from filename.dat into the current file. This differs from a type 1 line, since the scope stack is not pushed and popped. For example, "0 COLOUR (...) (25 years ago, 4-Oct-99, to lugnet.cad.dev)
| | | Re: Comprehensive meta-command list
|
| (...) The last three parameters define a vector, not angles. The nested commands are rotated <angle> degrees around the vector. To rotate 45 degrees around X, do: 0 ROTATE 45 1 0 0 ... To rotate -45 degress around Y, you can do this: 0 ROTATE 45 0 (...) (25 years ago, 5-Oct-99, to lugnet.cad.dev)
|
21 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|