Working with Linear Extrusion

Contents
[ ]

Performing Linear Extrusion

Aspose.3D for Java 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 Java offers setSlices() method of LinearExtrusion class. setSlices() method defines the number of intermediate points along the path of the extrusion. Following code snippet shows how to use setSlices() method in linear extrusion:

Center in Linear Extrusion

Aspose.3D for Java offers setCenter() method of LinearExtrusion class. If the setCenter() method 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 setCenter() method in linear extrusion:

Twist in Linear Extrusion

Aspose.3D for Java offers setTwist() method of LinearExtrusion class. The setTwist() method handles the degree of the rotation while extruding the shape. Following code snippet shows how to use setTwist() method in linear extrusion:

TwistOffset in Linear Extrusion

Aspose.3D for Java offers setTwistOffset() method of LinearExtrusion class. The setTwistOffset() method translates offset while rotating the extrusion. Following code snippet shows how to use setTwistOffset() method in linear extrusion:

Direction in Linear Extrusion

Aspose.3D for Java offers setDirection() method of LinearExtrusion class. The setDirection() method defines the direction of the extrusion. Following code snippet shows how to use setDirection() method in linear extrusion: