Node#
- class swick.Node(type: int, x: float, y: float, z: float, radius: float, parent_id: int)#
Bases:
object
A single node in an SWC structure, which is represented by a single line in the
.swc
file.- Parameters:
type – an enumeration describing the structure being represented by the node
x – the
x
component of the node’s 3D positiony – the
y
component of the node’s 3D positionz – the
z
component of the node’s 3D positionradius – the radius of the sphere used to represent the volume of the node
parent_id – the unique ID of another node that is the “parent” of this node: a connected node that is one step closer to the root node of the tree (a root node has no parent and will use a value
-1
for this field)