CylinderPrimitive
public class CylinderPrimitive : Primitive
{
// Length of the cylinder along its axis
public float length;
// Radius of the cylinder
public float radius;
// This transform must only contain rotation and translation components, not scale
public Matrix4F transform;
}
WARNING: the
transformmatrix should only contain rotation and translation operations, not scale. The size of the cylinder should be controlled via theradiusandlengthproperties