molara.Rendering.cylinder

This module contains the Cylinder and Cylinders classes.

They are used to create cylinders and multiple cylinders of the same color, respectively.

Functions

calculate_cylinder_model_matrix(position, ...)

Calculates the model matrix for a cylinder.

generate_cylinder(subdivisions)

Calculates the vertices and indices of a cylinder for a given number of subdivisions.

Classes

Cylinder(subdivisions)

Creates a Cylinder object, containing its vertices and indices.