Create rectangular Torus in 3D Scene

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.


 RectangularTorus rt = new RectangularTorus();

rt.InnerRadius = 17;

rt.OuterRadius = 22;

rt.Height = 30;

rt.Arc = Math.PI * 0.5;

Scene scene = new Scene();


scene.Save("rtorus.obj", FileFormat.WavefrontOBJ);

The generated rectangular torus looks as follows: