Rolf,
thanks for this great tool, works like a charm!
I'm trying to perform LXFML to LDR conversion myself and I'm struggling with the translation and rotation values from the ldraw.xml file. I could not figure out which vector to apply the rotation (rotation axis and angle) to. Also I might not have applied axis mappings correctly between the LDD and the LDraw coordinate system.
Here is an example which gives me headaches:
Design ID: 2401 (Corner Plate 10x10)
LXFML: transformation="1,0,0,0,1,0,0,0,1,2,0,-2.7999999523162842"
LDraw.xml: tx="3.6" ty="-.32" tz="-3.6" ax="0" ay="1" az="0" angle="4.712389"
Resulting LDR (from your tool): 140 -8 -20 0 0 -1 0 1 0 1 0 0
Maybe you could point me in the right direction how to calculate the LDR values? Or maybe you could share the relevant pieces of code from your tool (if you don't see any copyright issues). Any help would be greatly appreciated!
Finimig
thanks for this great tool, works like a charm!
I'm trying to perform LXFML to LDR conversion myself and I'm struggling with the translation and rotation values from the ldraw.xml file. I could not figure out which vector to apply the rotation (rotation axis and angle) to. Also I might not have applied axis mappings correctly between the LDD and the LDraw coordinate system.
Here is an example which gives me headaches:
Design ID: 2401 (Corner Plate 10x10)
LXFML: transformation="1,0,0,0,1,0,0,0,1,2,0,-2.7999999523162842"
LDraw.xml: tx="3.6" ty="-.32" tz="-3.6" ax="0" ay="1" az="0" angle="4.712389"
Resulting LDR (from your tool): 140 -8 -20 0 0 -1 0 1 0 1 0 0
Maybe you could point me in the right direction how to calculate the LDR values? Or maybe you could share the relevant pieces of code from your tool (if you don't see any copyright issues). Any help would be greatly appreciated!
Finimig