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 demonstrates how to offset the top of a cylinder in a scene.
using Aspose.ThreeD;
using Aspose.ThreeD.Utilities;
using Aspose.ThreeD.Entities;

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

// Initialize cylinder
var cylinder1 = new Cylinder(2, 2, 2, 20, 1, false);

// Create ChildNode
scene.RootNode.CreateChildNode(cylinder1).Transform.Translation = new Vector3(5, 0, 0);

// Intialze second cylinder
var cylinder2 = new Cylinder(2, 2, 2, 20, 1, false);

// Set OffsetTop
cylinder2.OffsetTop = new Vector3(4, 0, 0);

// Create ChildNode
scene.RootNode.CreateChildNode(cylinder2).Transform.Translation = new Vector3(-4, 0, 0);

scene