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.


import math
from aspose.threed.entities import RectangularTorus

rt = RectangularTorus()

rt.inner_radius = 17

rt.outer_radius = 22

rt.height = 30

rt.arc = math.pi * 0.5

scene = Scene()

scene.root_node.create_child_node(rt)"rtorus.obj", FileFormat.WAVEFRONT_OBJ)

The generated rectangular torus looks as follows: