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>
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>
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>