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.

Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement