OpenGLContext.scenegraph.gear
Gear node for use in geometry attribute of Shapes
Classes
Simple Gear geometry (from gears.py)
inner_radius
exposedField SFFloat inner_radius 0.1
outer_radius
exposedField SFFloat outer_radius 0.5
teeth
exposedField SFInt32 teeth 40
tooth_depth
exposedField SFFloat tooth_depth 0.1
width
exposedField SFFloat width 0.1
compile(
self
,
mode
)
Compile this geometry node to display-list
Initial code is taken from the PyOpenGL-Demo gears.py
which was in the Public Domain and converted multiple
times since then.