Thursday, August 11, 2011

Hidden Corners of SketchUp's Ruby API: Transforming Vertices

1 comment:

  1. Yea - I was stomped on this as well when I began to develop Vertex Tools.

    One method which I found to be really useful was Entities.transform_by_vectors as it allowed me to transform multiple vertices with different transformation in one go - which speed up things a bit.

    Though, that method doesn't take a transformation object, so I first need to iterate the vertices, transform their position and generate vectors from their original position to their new.

    ReplyDelete

You are welcome to contribute comments, but they should be relevant to the conversation. We reserve the right to remove off-topic remarks in the interest of keeping the conversation focused and engaging.