dhart.spatialstructures.Graph.get_node_points

Graph.get_node_points(x=True, y=True, z=True)

Get the nodes of the graph as xyz values in a numpy array by defining the array name view to be used as the x,y,z values. It uses the structured_to_unstructured method of numpy to perform the conversion.

Parameters:
  • x (bool, optional) –

  • y (bool, optional) –

  • z (bool, optional) –

Returns:

where n is the number of nodes in the graph and 3 is an x,y,z point

Return type:

ndarray[n x 3]

Notes

Copys? (TODO check this) which means the array will not change if the graph is modified

Examples

>>>
>>>