org.rajawali3d.primitives / Torus

Torus

open class Torus : Object3D
open class Torus : Object3D

A torus primitive (donut shape). The constructor takes two boolean arguments that indicate whether certain buffers should be created or not. Not creating these buffers can reduce memory footprint.

When creating solid color torus both createTextureCoordinates and createVertexColorBuffer can be set to false.

When creating a textured torus createTextureCoordinates should be set to true and createVertexColorBuffer should be set to false.

When creating a torus without a texture but with different colors per texture createTextureCoordinates should be set to false and createVertexColorBuffer should be set to true.