8.2. BoxGeom — Box geometry

class BoxGeom(lx=1.0, ly=1.0, lz=1.0, segmentsx=1, segmentsy=1, segmentsz=1)

lx, ly and lz specify the dimensions of the box in the respective direction.

segmentsx, segmentsy and segmentsz are the number of segments in each direction.

A BoxGeom 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
lx_slot float rw The length in x direction
ly_slot float rw The length in y direction
lz_slot float rw The length in z direction
segmentsx_slot int rw The number of segments in x direction
segmentsy_slot int rw The number of segments in y direction
segmentsz_slot int rw The number of segments in z direction
BoxGeom.cog
Center of gravity with respect to the local coordinate system.
BoxGeom.inertiatensor
Inertia tensor with respect to the local coordinate system.
BoxGeom.lx
The length in x direction.
BoxGeom.ly
The length in y direction.
BoxGeom.lz
The length in z direction.
BoxGeom.segmentsx
The number of segments in x direction.
BoxGeom.segmentsy
The number of segments in y direction.
BoxGeom.segmentsz
The number of segments in z direction.

Previous topic

8.1. GeomObject — Geometry base class

Next topic

8.3. SphereGeom — Sphere geometry

This Page