Thanks Travis. That's a good point. I'll try to implement a 'list of referenced files'. This should really speed up parts inlining if many primitives and subfiles are used.
Let me just explain a little bit how I organized things.
1) an ldr/dat file is an object that has head data like author, description etc. and lines.
2) the lines are stored in a System.Collections.Generic.List(Of cls_LDraw_Line)
3) each line is an object of type cls_LDraw_Line
4) each object of type cls_LDraw_line consists of the known x,y,z,a,b......, reference, linetype, linecolor, metacommand
This design is very comfortable for coding, but maybe not that useful for speedy applications.
Let me just explain a little bit how I organized things.
1) an ldr/dat file is an object that has head data like author, description etc. and lines.
2) the lines are stored in a System.Collections.Generic.List(Of cls_LDraw_Line)
3) each line is an object of type cls_LDraw_Line
4) each object of type cls_LDraw_line consists of the known x,y,z,a,b......, reference, linetype, linecolor, metacommand
This design is very comfortable for coding, but maybe not that useful for speedy applications.