Function GeometrySingleton.buildCapsulePlanes
Returns an array of Plane
s 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).
Array buildCapsulePlanes
(
const(double) radius,
const(double) height,
const(long) sides,
const(long) lats,
const(long) axis = 2L
) nothrow @nogc;