| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 286 online users. » 1 Member(s) | 280 Guest(s) Applebot, Baidu, Bing, Google, Internet Archive, Philippe Hurbain
|
| Latest Threads |
"Automatic" upload of som...
Forum: Parts Authoring
Last Post: Gerald Lasser
3 hours ago
» Replies: 0
» Views: 44
|
LDCad 1.7 Beta 2 (win+lin...
Forum: LDraw Editors and Viewers
Last Post: Jaco van der Molen
4 hours ago
» Replies: 16
» Views: 1,072
|
Discussion - proposal to ...
Forum: Official File Specifications/Standards
Last Post: Manfred Schaefer
Yesterday, 20:50
» Replies: 20
» Views: 1,088
|
Modular Buildings
Forum: Official Models
Last Post: Willy Tschager
Yesterday, 16:12
» Replies: 87
» Views: 174,040
|
Slime Pack and Hat
Forum: Part Requests
Last Post: 3CFigs
2026-01-26, 23:38
» Replies: 2
» Views: 398
|
LEGO Botanicals
Forum: Official Models
Last Post: Chris Böhnke
2026-01-26, 22:16
» Replies: 2
» Views: 3,323
|
2026/2027 LDraw.org Steer...
Forum: LDraw.org Announcements
Last Post: Nils Schmidt
2026-01-26, 19:18
» Replies: 48
» Views: 2,279
|
[LDPE] 1.8.97 Released (s...
Forum: Parts Author Tools
Last Post: Nils Schmidt
2026-01-26, 19:07
» Replies: 3
» Views: 643
|
First ever web-based LDra...
Forum: Help
Last Post: Hageta
2026-01-26, 14:29
» Replies: 13
» Views: 7,799
|
Official part 4719 : part...
Forum: Parts Tracker Discussion
Last Post: Chris Böhnke
2026-01-26, 11:07
» Replies: 5
» Views: 229
|
|
|
| Pattern Base Part |
|
Posted by: Orion Pobursky - 2025-08-24, 3:51 - Forum: Parts Tracker Discussion
- Replies (5)
|
 |
Here's a list of every patterned part that doesn't have a base part:
(List generated 8/23/2025)
parts/15336p01.dat Done
parts/15336p02.dat
parts/27039p01.dat Done
parts/39367p01.dat Done
parts/39367p02.dat
parts/47510p01.dat Done
parts/49242p01.dat Done
parts/49295p01.dat Done
parts/49295p02.dat
parts/49295p03.dat
parts/60235p01.dat Done
parts/60237p01.dat Done
parts/62575p01.dat
parts/65082p01.dat Done
parts/65497p01.dat
parts/65551p01.dat Done
parts/65552p01.dat Done
parts/65834p01.dat Done
parts/65834p02.dat
parts/67100p01-f1.dat Done
parts/67611p01.dat
parts/77127p01.dat
parts/90391p01.dat Done
parts/90391p02.dat
parts/t1094k01p01.dat
parts/t1094k02p01.dat
parts/t1094k02p02.dat
parts/t1094p01.dat
parts/t1095k01p01.dat
parts/t1095p01.dat
parts/t1096p01.dat
parts/t1097p01.dat
parts/u572p01.dat
parts/u572p02.dat
parts/u9534p01.dat
parts/u9537p01.dat
|
|
|
| Parsing LDraw |
|
Posted by: Max Murtazin - 2025-08-20, 18:04 - Forum: Help
- Replies (3)
|
 |
*sigh*
Okay, I've probably been it at it many times and probably even asked some questions on this topic before, but, alas, I'm at it again - trying to build an LDraw file format parser in C#. Why C#? Tl;dr: I need it for other stuff, and that stuff uses C#.
Well, the question itself: How does one even go around effectively parsing LDraw? This topic is a bit confusing to me due to the recursiveness (I guess that's what the word would be) of the format. My current approach is like this:
1. Read through all of the file, store all the faces in an array, store all the submodels in a separate array
2. Go through the submodel array, go to step 1 for each of them
3. Once the process is out of this recursive mess, "resolve" each submodel by applying the transform to it's triangles and adding them to the submodel's parent
4. Done, I guess?
It is very simple and doesn't account for, like, any meta or other stuff that could be important, but it should be enough for the start. I'm just not sure if this approach is good, or how it possibly could be improved
Also, I know I can read stuff like LDView source code, but I'm really bad at reading code made by other people, so it would probably take way more time than just asking it here
|
|
|
|