extrude{

Extrude a 2D surface in one direction to a 3D object

Extrude a 2D surface in one direction to a 3D object. This is useful, if you have a 2D sketch and want to create a 3D geometry from it.

manipulate{"Alias"} extrude{ OPTIONAL: %GEO_open% , DirectionX, DirectionY, DirectionZ, OPTIONAL: DirectionLength }
The vector (DirectionX, DirectionY, DirectionZ) gives the direction in which to extrude. It can optionally be normalized, so that the user can specify the length of extrusion with DirectionLength . For example, to construct an open container, the user also has the option to leave the extruded object open at the other end. For this the keyword %GEO_open% must be set. The default is %GEO_close%. Note: Always check the normals for an extrude command! It may be that the normals still have to be reoriented with revOrient{} as needed.

Example:

begin_boundary_elements{} manipulate{"Alias1"} extrude{ 0, 0, 0.5 } # extrude Alias1 in z direction with length 0.5 manipulate{"Alias2"} extrude{ 0, 0, 0.5, 2.0 } # extrude Alias2 in z direction with length 2.0 manipulate{"Alias3"} extrude{ %GEO_open%, 0, 0, 0.5, 2.0 } # extrude Alias3 in z direction with length 2.0 and leave the extrusion open end_boundary_elements