Aspose.3D for Java offers LinearExtrusion class, which takes a 2D shape as an input and extends the shape in the 3rd dimension....LinearExtrusion ( profile , 2 ) {{ setSlices ( 2 );}}); // Perform linear...new LinearExtrusion ( profile , 2 ) {{ setSlices ( 10 );}}); //...