GeometrySingleton.buildCapsulePlanes

Returns an array of Planes closely bounding a faceted capsule centered at the origin with radius radius and height height. The parameter sides defines how many planes will be generated for the side part of the capsule, whereas lats gives the number of latitudinal steps at the bottom and top of the capsule. The parameter axis describes the axis along which the capsule is oriented (0 for X, 1 for Y, 2 for Z).

struct GeometrySingleton
@nogc nothrow
Array
buildCapsulePlanes
(
in double radius
,
in double height
,
in long sides
,
in long lats
,
in long axis = 2
)

Meta