v_sim.NodeFinder¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.NodeFinder(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
An opaque structure.
New in version 3.8.
- classmethod new(data)¶
- Parameters:
data (
v_sim.Data) – av_sim.Dataobject.- Returns:
a pointer to the
v_sim.NodeFinderit created orNoneotherwise.- Return type:
Creates a new
v_sim.NodeFinderto look for node from coordinates.New in version 3.8.
- getData()¶
- Returns:
the corresponding
v_sim.Datathe finder work on.- Return type:
Get the
v_sim.Dataobject the self is working on.New in version 3.8.
- lookup(at, tol)¶
- Parameters:
- Returns:
the id of the closest node to at (within a maximum radius of tol). If none is found, returns -1.
- Return type:
Giving the cartesian coordinates at, this method lookup for the closest
v_sim.Nodewithin a radius of tol.New in version 3.8.
- lookupArray(ids, at, np, tol)¶
- Parameters:
Apply
v_sim.NodeFinder.lookup() on the array at. It’s used mainly for bindings.New in version 3.8.