Subject:
|
Part naming and hard colored parts
|
Newsgroups:
|
lugnet.cad
|
Date:
|
Tue, 19 May 2009 12:05:36 GMT
|
Viewed:
|
8218 times
|
| |
| |
Hi everybody,
as many of you already know, I'm the programmer of SR 3D Builder.
Using the lDraw prebuild library has been for me the starting point for
developing my application, but as things become complex I have to assume
some convention in my application to deal with part colors and description.
For example I use the part description to recognize if what I'm loading
is an assembly or a single part. This is even more important if the
assembly contains part that can be moved (like 4592C01.DAT control
stick for example).
For colors the problem is more complex: I search the 0 color ID Min and
Max vertex to determine part boundaries, but for hard colored part this
could not work since there are no 0 colorID vertex.
What I'm asking is a 'Description convention' for example use
- '-Assemblies-' word for all assemblies
- '-Colored-' for all colored parts
or (preferred) use some flag in .DAT files like
0 !ASSEMBLY
0 !COLORED
(or whatever you want) to help solving these ambiguties
let me know your opinions...
Sergio
|
|
Message has 1 Reply: | | Re: Part naming and hard colored parts
|
| (...) Sergio From the complete library update that was 2008-01, the !LDRAW_ORG line (line 4 of every file) should tell you what you need to know. Full details are in the header specification at (URL) Generic colour parts have an identifier of "Part" (...) (16 years ago, 19-May-09, to lugnet.cad)
|
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|