Node

class itasca.geometry.node.Node

Objects of this type should not be created (instantiated) directly in Python. Use the module functions that return instances of this type.

extra(slot: int) → any.

Get the geometry node extra data in the given slot.

group([slot: str or int]) → str.

Get the geometry node group name in a given slot.

group_remove(group_name: str or int[, slot: str or int]) → bool.

Remove from the given group from all group slots of the geometry node. One argument of type string, giving the group name, is required. The return value is a bool which is True if the group was removed from any slot, otherwise False.

groups() → {slot: group_name}.

Get a dictionary describing which groups this geometry node is part of. The keys of the dictionary are the slot names and the values are the group names.

id() → int.

Get the geometry node id.

in_group(group_name: str or int[, slot: str or int]) → bool.

Test if the geometry node is part of a given group. If the optional argument slot is given, only that slot is searched. Otherwise, all group slots are searched.

pos() → vec.

Get the geometry node node location (vector).

pos_x() → float.

Get the x-component of the geometry node node location.

pos_y() → float.

Get the y-component of the geometry node node location.

pos_z() → float.

Get the z-component of the geometry node node location.

set_extra(slot: int, value: any) → None.

Set the geometry node extra data in the given slot.

set_group(group_name: str or int[, slot: str or int]) → None.

Set the geometry node group name in a given slot.

set_pos(value: vec) → None.

Set the geometry node node location (vector).

set_pos_x(value: float) → None.

Set the x-component of the geometry node node location.

set_pos_y(value: float) → None.

Set the y-component of the geometry node node location.

set_pos_z(value: float) → None.

Set the z-component of the geometry node node location.

start_edge() → Geometry edge object.

Get the first edge connected to a geometry node.

start_index() → Node index.

Get the local index of the geometry node within the first edge attached to it.

valid() → bool.

Returns True if this geometry node is live.