Inter

class itasca.dfn.inter.Inter
Objects of this type should not be created (instantiated) directly in Python. Use the module functions that return instances of this type.
end1() → Fracture object.

Get the end1 fracture object.

end2() → Fracture object.

Get the end2 fracture object.

extra(slot: int) → any.

Get the intersection extra data in the given slot.

group([slot: str]) → str.

Get the intersection group name in a given slot.

group_remove(group_name: str) → bool.

Remove from the given group from all group slots of the intersection. 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 intersection is part of. The keys of the dictionary are the slot names and the values are the group names.

id() → int.

Get the intersection id.

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

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

pos1() → vec.

Get the intersection first end position (vector).

pos1_x() → float.

Get the x-component of the intersection first end position.

pos1_y() → float.

Get the y-component of the intersection first end position.

pos2() → vec.

Get the intersection second end position (vector).

pos2_x() → float.

Get the x-component of the intersection second end position.

pos2_y() → float.

Get the y-component of the intersection second end position.

set() → Intersection set object.

Get the intersection set to which this intersection belongs.

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

Set the intersection extra data in the given slot.

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

Set the intersection group name in a given slot.

valid() → bool.

Returns True if this intersection is live.