v_sim.NodeNeighbours¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
|---|---|---|---|
r/w/co |
the Data the neighbours are for |
||
r/w |
additional percentage on radii |
||
r/w/co |
the Link the neighbours are for |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
|---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class v_sim.NodeNeighbours(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Common name to refer to a #_VisuNodeNeighbours.
- classmethod new(data)¶
- Parameters:
data (
v_sim.Data) – av_sim.Dataobject.- Returns:
a newly created
v_sim.NodeNeighboursobject.- Return type:
Create an object to handle a set of neighbours for data.
New in version 3.8.
- classmethod new_forLink(data, link)¶
- Parameters:
data (
v_sim.Data) – av_sim.Dataobject.link (
v_sim.PairLink) – av_sim.PairLinkobject.
- Returns:
a newly created
v_sim.NodeNeighboursobject.- Return type:
Create an object to handle a set of neighbours for data following link definition.
New in version 3.9.
- addFilter(pair)¶
- Parameters:
pair ([
v_sim.Element]) – twov_sim.Elementobjects.
Restrain neighbour calculation to pairs matching pair.
New in version 3.9.
- getSurfaceAt(nodeId)¶
- Parameters:
nodeId (
int) – a node number.- Returns:
Trueif def is generated.- def_:
a place to store points and polys.
- Return type:
(
bool, def_:v_sim.SurfaceDefinition)
Generate a surface definition around atom nodeId.
New in version 3.8.
- getSurfaceFrom(nodeId)¶
- Parameters:
nodeId (
int) – a node id.- Returns:
Trueif there is any generated surface.- def_:
a place to store points and polys.
- Return type:
(
bool, def_:v_sim.SurfaceDefinition)
Generate a surface definition around atom nodeId and all its neighbours.
New in version 3.8.
- iter(nodeId)¶
- Parameters:
nodeId (
int) – the node id to obtain neighbours of.- Returns:
Trueif the iterator is valid.- iter:
a
v_sim.NodeNeighboursIterstructure.
- Return type:
(
bool, iter:v_sim.NodeNeighboursIter)
Initialise iter to iterate over the neighbours of node nodeId.
New in version 3.8.
Property Details¶
- v_sim.NodeNeighbours.props.data¶
- Name:
data- Type:
- Default Value:
- Flags:
the Data the neighbours are for
- v_sim.NodeNeighbours.props.factor¶
-
additional percentage on radii
- v_sim.NodeNeighbours.props.link¶
- Name:
link- Type:
- Default Value:
- Flags:
the Link the neighbours are for