Create rectangular Torus in 3D Scene
Contents
[
Hide
]
Using Aspose.3D for .NET API, developers can create 3D objects, and then save 3D scene in any supported 3D format.
Rectangular Torus
We have added RectangularTorus
class, it allows developers to place a parameterized rectangular torus into the scene, this can be converted to ordinal mesh/triangle mesh during saving the scene into different supported file formats.
C#
RectangularTorus rt = new RectangularTorus();
rt.InnerRadius = 17;
rt.OuterRadius = 22;
rt.Height = 30;
rt.Arc = Math.PI * 0.5;
Scene scene = new Scene();
scene.RootNode.CreateChildNode(rt);
scene.Save("rtorus.obj", FileFormat.WavefrontOBJ);
The generated rectangular torus looks as follows: