PrinterKit | Wiki

Shape Functions 3D

3D shapes can either be generated by a built-in 3d function or extruded from a 2d shape.

shape1 = Cube(3)
render(shape1)

hex = Hexagon(3)
length = 3
shape2 = extrude(hex, length)
shape2.translateX = 8
render(shape2)


3D shapes have the following settings that can be applied to them:

Name Decription
rotateX Rotate shape around X-axis
rotateY Rotate shape around Y-axis
rotateZ Rotate shape around Z-axis
scaleX Scale 2d shape in X direction
scaleY Scale 2d shape in Y direction
translateX Move 3d shape along X-axis
translateY Move 3d shape along Y-axis
translateZ Move 3d shape along Z-axis
rotateXY Rotate shape around both X-axis and Y-axis
rotateXZ Rotate shape around both X-axis and Z-axis
rotateYZ Rotate shape around both Y-axis and Z-axis
rotateXYZ Rotate shape around both X, Y, and Z axes
scaleXY Scale 2d shape in both X and Y directions
translateXY Move 3d shape along X and Y axes
translateXZ Move 3d shape along X and Z axes
translateYZ Move 3d shape along Y and Z axes
stepCountHint Hint for how many sections there are in extrusion
color Rendered color of model