Working with Linear Extrusion

Contents
[ ]

Performing Linear Extrusion

Aspose.3D for Python via .NET offers LinearExtrusion class, which takes a 2D shape as an input and extends the shape in the 3rd dimension. Following code snippet shows how to perform linear extrusion:

slices in Linear Extrusion

Aspose.3D for Python via .NET offers slices property of LinearExtrusion class. slices property defines the number of intermediate points along the path of the extrusion. Following code snippet shows how to use slices property in linear extrusion:

center in Linear Extrusion

Aspose.3D for Python via .NET offers center property of LinearExtrusion class. If the center property is set to True, the extrusion range is from -Height/2 to Height/2, otherwise, the extrusion is from 0 to Height. Following code snippet shows how to use center property in linear extrusion:

twist in Linear Extrusion

Aspose.3D for Python via .NET offers twist property of LinearExtrusion class. twist property handles the degree of the rotation while extruding the shape. Following code snippet shows how to use twist property in linear extrusion:

twist_offset in Linear Extrusion

Aspose.3D for Python via .NET offers twist_offset property of LinearExtrusion class. twist_offset property translates offset while rotating the extrusion. Following code snippet shows how to use twist_offset property in linear extrusion:

direction in Linear Extrusion

Aspose.3D for Python via .NET offers direction property of LinearExtrusion class. direction property defines the direction of the extrusion. Following code snippet shows how to use direction property in linear extrusion: