8.4. CCylinderGeom — Capped cylinder geometry

class CCylinderGeom(radius=1.0, length=1.0, segmentsu=16, segmentsvl=1, segmentsvr=4)

radius is the radius of the cylinder and caps in the local coordinate system.

length is the length of the cylinder (not counting the caps).

segmentsu is the number of segments in u direction, segmentsvl the number of segments of the cylinder part and segmentsvr the number of segments for each cap.

A CCylinderGeom has the following slots:

Slot Type Access Description
cog_slot vec3 r The local center of gravity
inertiatensor_slot mat3 r The local inertia tensor
radius_slot float rw The radius of the cylinder
length_slot float rw The lenght of the cylinder
segmentsu_slot int rw The number of segments in u direction
segmentsvl_slot int rw The number of cylinder segments in v direction
segmentsvr_slot int rw The number of cap segments in v direction
CCylinderGeom.cog

Center of gravity with respect to the local coordinate system.

CCylinderGeom.inertiatensor

Inertia tensor with respect to the local coordinate system.

CCylinderGeom.radius

The radius of the cylinder and caps.

CCylinderGeom.length

The length of the cylinder (not counting the caps).

CCylinderGeom.segmentsu

The number of segments in u direction.

CCylinderGeom.segmentsvl

The number of cylinder segments in v direction.

CCylinderGeom.segmentsvr

The number of cap segments in v direction.

Previous topic

8.3. SphereGeom — Sphere geometry

Next topic

8.5. PlaneGeom — Plane geometry

This Page