fractaldna.structure_models.voxelisation.Voxel¶
- class fractaldna.structure_models.voxelisation.Voxel(pos, inHeading, inPrincipal, outHeading, outPrincipal)¶
Bases:
object
Position, rotation and form of a DNA placement voxel.
The principal axes are used to determine if the DNA would undergo a 90˚ rotation as it passes through the voxel.
One way to think of them is to consider that the path of your DNA or curve through the voxel is along a continuous z-axis, perpendicular to an X-Y plane. The Principal Axes could be the vectors that describe the direction of the X-axis.
Class Notes: psi, theta, phi: Euler rotations about the X, Y and Z axes (XYZ rotation order)
type: code corresponding to geometrical shape pos: XYZ position
Voxel(pos, inHeading, inPrincipal, outHeading, outPrincipal)
- Parameters:
pos (
array
) – XYZ-position of voxelinHeading (
array
) – vector of the DNA heading “into” the voxel.inPrincipal (
array
) – vector of the DNA’s principal axis at the entrace to the voxeloutHeading (
array
) – vector of the DNA heading “out” of the voxel.outPrincipal (
array
) – vector of the DNA’s principal axis at the exit to the voxel
- __init__(pos, inHeading, inPrincipal, outHeading, outPrincipal)¶
Constructor
Methods
__init__
(pos, inHeading, inPrincipal, ...)Constructor
Return the voxel as a pandas series
to_text
([sep])Print a textual representation of the voxel as KIND POS_X POS_Y POS_Z EUL_PSI EUL_THETA EUL_PHI
Attributes
defaultAxis
defaultAxisInv
defaultHeading
defaultOrtho
defaultPrincipal
types
types_inverse
- to_series()¶
Return the voxel as a pandas series
- to_text(sep=' ')¶
Print a textual representation of the voxel as KIND POS_X POS_Y POS_Z EUL_PSI EUL_THETA EUL_PHI
- Return type:
str