meta data for this page
  •  

This is an old revision of the document!


Linear Extrude

 Extrude Linear

Extrude a two dimensional shape in an upward linear direction.

The two dimensional shape is extruded to the height, upwards along the Z axis. The two dimensional shape is be rotated twistAngle about the Z axis during the extrusion, creating twistSteps during the extrusion.

Note: The two dimensional shape can be placed anywhere to create various twisted shapes.

Defaults:

  • height : 1
  • twist : 0
  • twistSteps : 1
let myshape = extrudeLinear({height: radiusZ * 2}, shape1)
let myshape = extrudeLinear({height: radiusZ * 2, twistAngle: Math.PI / 2, twistSteps: 10}, shape2)
let myshape = extrudeLinear({height: radiusZ * 2}, shape3)

Linear extrusion of 2D shape, with optional twist. The 2d shape is placed in in z=0 plane and extruded into direction offset (a CSG.Vector3D). The final face is rotated twistangle degrees. Rotation is done around the origin of the 2D shape (i.e. x=0, y=0) twiststeps determines the resolution of the twist (should be >= 1), returns a CSG object: