Transformations#

import veux
import xara
from xsection.library import from_aisc

material = xara.Material(E=1, G=1)

shape = from_aisc("W14x211", material=material)
veux.draw_shape(shape, origin=True)
<veux.artist.shape.PlaneArtist at 0x12f47e660>
../_images/e53905d0ca57f300adcd6a4bd214f147012fe89fafff4c9ba8dd5f3de15e21e3.png

Translation#

The translate method creates a new shape that is translated in space

shape = shape.translate([-3.0, 0])
veux.draw_shape(shape, origin=True)
<veux.artist.shape.PlaneArtist at 0x13c5907a0>
../_images/990fc3b5305647a34cc3c32e25cc3c5088ad0781ca6e025a19fbe4dfef3e9a67.png

Rotation#

The rotate method rotates a section:

import math
shape = shape.rotate(math.pi/4)
veux.draw_shape(shape, origin=True)
<veux.artist.shape.PlaneArtist at 0x13c73cd10>
../_images/45114710dc5dd4210d651eff134f140932587ba5ecfc1f8b05f333e87c2d85d5.png