Glyph Version 7.22.2 |
pw:: NodeA node is the zero-dimensional boundary of a one-dimensional pw::Connector. A node cannot exist without a connector. Derives FromSummary
getXYZ
This action gets the XYZ location of this node. Parameters
ReturnsThis action returns an XYZ vector. See AlsogetPoint, pw::Connector.getNode ExampleThis example shows how to get the XYZ vector of a grid point in a node. $node references an existing node. Code # these four actions are equivalent Output 3.75 2.0 0.0 getPoint
This action gets the position of a node. Parameters
ReturnsThis action returns a point giving the grid point position and this may be in the form “u v dbentity”. See AlsoExampleThis example shows how to get the point of a node grid point. $node is referencing an existing node. Code # these two actions are equivalent Output 3.75 2.0 0.0 getConnectors
This action gets the connectors of this node. Parametersnone ReturnsThis action returns a list of pw::Connector objects. getDimensions
This action gets the dimensions of this node. ParametersThis action has no parameters. ReturnsThis action always returns the integer 1. See AlsoExampleThis example shows how to get the dimension of a node. $node is referencing an existing node. Code $node getDimensions Output 1 getPointCount
This action gets the number of grid points in the node. Parameters
ReturnsThis action returns 1. See AlsoExampleThis example shows how to find the point count in a node, as well as the point count that is constrained to database entities. $node is referencing an existing node. Code puts [$node getPointCount -constrained onDB] Output 1 getName
This gets the system assigned node name. ParametersThis action has no parameters. ReturnsThis action returns a unique node name string. InformationThis action is provided to be consistent with the block, domain and connector getName actions. However, since a pw::Node object is not a grid entity, you cannot set the name of a node and you cannot use “pw::Grid getByName” to get a node. ExampleThis example shows how to get the name of a node. $node is referencing an existing node. Code puts [$node getName] Output Node_22 |
This action gets the XYZ location of this node.
$node getXYZ ?-grid? ?value?
This action gets the position of a node.
$node getPoint ?-constrained constrainedVar? ?index?
This action gets the connectors of this node.
$node getConnectors
This action gets the dimensions of this node.
$node getDimensions
This action gets the number of grid points in the node.
$node getPointCount ?-constrained constrainedVar?
This gets the system assigned node name.
$node getName
This action gets a node from a connector.
$con getNode < Begin | End | index >