4.6.3 pde.tools.cuboid module
An n-dimensional, axes-aligned cuboid.
This module defines the Cuboid class, which represents an n-dimensional
cuboid that is aligned with the axes of a Cartesian coordinate system.
- class Cuboid(pos, size, mutable=True)[source]
Bases:
objectClass that represents a cuboid in \(n\) dimensions.
Defines a cuboid from a position and a size vector.
- Parameters:
- buffer(amount=0, inplace=False)[source]
Dilate the cuboid by a certain amount in all directions.
- Parameters:
amount (FloatOrArray)
- Return type:
- property centroid
- property corners: tuple[NumericArray, NumericArray]
Return coordinates of two extreme corners defining the cuboid.
- property size: NumericArray