You can write code here to use Aspose.3D and run the code in browser to see how it works.
Step 3 of 3: The following code shows how to use the GeometricRotation method to rotate a cylinder.
using Aspose.ThreeD;
using Aspose.ThreeD.Entities;
using Aspose.ThreeD.Utilities;

//Create a new 3D scene
Scene scene = new Scene();

// Initialize object by Cylinder class
IMeshConvertible convertible = new Cylinder();

// Convert a Cylinder to Mesh
Mesh mesh = convertible.ToMesh();

// Initialize Node class object
var n = new Node("geometry");

// Point node to the Mesh geometry
n.Entity = mesh;

// Add Node to the scene
scene.RootNode.ChildNodes.Add(n);

// Set cylinder scaling
n.Transform.GeometricScaling = new Vector3(0.5,0.5, 0.5);

// Set cylinder rotation
n.Transform.GeometricRotation = new Vector3(30, 30, 30);

scene