- class microstructpy.geometry.Cube(**kwargs)¶
This class contains a generic, 3D cube. It is derived from the
Boxand contains the
side_lengthproperty, rather than multiple side lengths.
Without any parameters, this is a unit cube centered on the origin.
Plot the box.
This function adds an
mpl_toolkits.mplot3d.art3d.Poly3DCollectionto the current axes. The keyword arguments are passed through to the Poly3DCollection.
**kwargs (dict) – Keyword arguments for Poly3DCollection.
Test if points are within n-box.
This function tests whether a point or set of points are within the n-box. For the set of points, a list of booleans is returned to indicate which points are within the n-box.