Transformations
-
The transformation.axes method just transforms the object so that it's axes match the internal ones.
try using transformation.axes on the grouponent (I believe you used that one )
then use
grouponent.entities.transform_entities(grouponent.transformation.inverse,grouponent.entities.to_a)
EDIT: Just tried it and it should work.
-
I just looked at the picture you posted again. Do you want flip the axes, instead of rotating them? If so, I don't know if that is possible. It's has to do with the fact that sketchup uses a right hand orientation, instead of left-hand orientation that I'm guessing LDraw uses (http://en.wikipedia.org/wiki/Right-hand_rule).
Is there a way to change the orientation of axes in LDraw? (I haven't used it myself, so I have no idea)
-
One of the reasons I asked was that I wrote this LDraw importer. But the LDraw axes system does not match SketchUps, and I really want the importer to correct this on import. You can see the import works, but I haven't been able to figure out how to trasnform the geometry during the import so it uses a SketchUp axes that people are familiar with using.
Advertisement