For the complete documentation index, see llms.txt. This page is also available as Markdown.

Translation, Rotation, and Other Transformations

Certain geometry objects can be created by explicitly stating x, y, and z coordinates in three-dimensional space. More often, however, geometry is moved into its final position using geometric transformations on the object itself or on its underlying Coordinate System.

Translation

The simplest geometric transformation is a translation, which moves an object a specified number of units in the x, y, and z directions.

Rotation

While all objects in Dynamo can be translated by appending the .Translate method to the end of the object’s name, more complex transformations require transforming the object from one underlying Coordinate System to a new Coordinate System. For instance, to rotate an object 45 degrees around the x axis, we would transform the object from its existing Coordinate System with no rotation, to a Coordinate System which had been rotated 45 degrees around the x axis with the .Transform method:

Scale

In addition to being translated and rotated, Coordinate Systems can also be created scaled or sheared. A Coordinate System can be scaled with the .Scale method:

Sheared Coordinate Systems are created by inputting non-orthogonal vectors into the Coordinate System constructor.

Scaling and shearing are comparatively more complex geometric transformations than rotation and translation, so not every Dynamo object can undergo these transformations. The following table outlines which Dynamo objects can have non-uniformly Scaled Coordinate Systems, and Sheared Coordinate Systems.

Class
Non-Uniformly Scaled Coordinate System
Sheared Coordinate System

Arc

No

No

NurbsCurve

Yes

Yes

NurbsSurface

No

No

Circle

No

No

Line

Yes

Yes

Plane

No

No

Point

Yes

Yes

Polygon

No

No

Solid

No

No

Surface

No

No

Text

No

No

Last updated