CylinderMesh

Inherits: PrimitiveMesh < Mesh < Resource < Reference < Object

Class representing a cylindrical PrimitiveMesh.

Description

Class representing a cylindrical PrimitiveMesh. This class can be used to create cones by setting either the top_radius or bottom_radius properties to 0.0.

Properties

floatbottom_radius1.0
floatheight2.0
intradial_segments64
intrings4
floattop_radius1.0

Property Descriptions

Default1.0
Setterset_bottom_radius(value)
Getterget_bottom_radius()

Bottom radius of the cylinder.


Default2.0
Setterset_height(value)
Getterget_height()

Full height of the cylinder.


  • int radial_segments
Default64
Setterset_radial_segments(value)
Getterget_radial_segments()

Number of radial segments on the cylinder.


Default4
Setterset_rings(value)
Getterget_rings()

Number of edge rings along the height of the cylinder.


Default1.0
Setterset_top_radius(value)
Getterget_top_radius()

Top radius of the cylinder.