AINode¶
from acron.ai import AINode
- class AINode¶
Bases:
This class is used to assign the nodes on the mesh. It holds all the data necessary to compute A* algorithm. It also maintains a lot of vital information such as the neighbor nodes of each node and also its position on the mesh. Note: The Mesh Generator which is a standalone tool makes use of this class to generate the nodes on the mesh.
Inheritance diagram
digraph inheritancec566587625 { bgcolor=transparent; rankdir=BT; size="8.0, 12.0"; "AINode" [URL="acron.ai.AINode.html#acron.ai.AINode",fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style="",target="_top",tooltip="/**"]; "DTOOL_SUPER_BASE" -> "AINode" [arrowsize=0.75,style=""]; "DTOOL_SUPER_BASE" [fillcolor=white,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=11,height=0.25,shape=box,style=""]; }- __init__()¶
- contains()¶
This is a handy function which returns true if the passed position is within the node’s dimensions.