This module allows you to create and operate with 3d objects in 3d space
Base class for creating 3d space using provided border limits. This class includes these methods:
return list with border values, if border is NULL border - raises Volume.BorderError (0 - X border; 1 - Y border; 2 - Z border)
trying to return object index in self.obj using name, else raises Volune.NoObjectError
trying to create box in space self with positional name and returns object, else raises Volume.BorderError
set self.border['axis'] to value, where axis can be 'x', 'y', 'z' or 'ax+' (or you can use constants)
returns default Volume
Base class for creating box in provided 3d space. This class includes these methods:
return dict with Cube size
return dict with Cube coordinates
moves cube along provided axis using provided method, where axis can be 'x', 'y' or 'z'; method: 'MULTIPLY', 'ADD' or 'SET' (or you can use constants)
scales cube along provided axis using provided method, where axis can be 'x', 'y' or 'z'; method: 'MULTIPLY', 'ADD' or 'SET' (or you can use constants)
display current cube on provided plane (can write to provided file), where plane can be 'xy', 'xz' or 'zy' (or you can use constants)
Object larger than border or function trying to get NULL border
3d object not found or does not exist
Additional class with User Interface. This class includes these functions:
clearing console or provided file
mode, where user can create his own Volume and Box
mode, displaying simple animation
function, where user can choose mode