Thursday, August 11, 2011

Hidden Corners of SketchUp's Ruby API: Transforming Vertices

1 comment:

Thomas Thomassen said...

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.