OPS

HomeDocsSupport

OPS

Back to docs

GetNodeCoordinates

Description Get the (x, y, z) coordinates of a given node.

Parameters

  • node (int): The node number to retrieve coordinates for.

Returns tuple: A tuple of (x, y, z) coordinates, rounded to 3 decimals.

Example To use this function see the following example:

from openstaad import Geometry
 
# Instanciate the Geometry module 
geometry= Geometry() 
 
#Execute the function from geometry module
x, y, z = geometry.GetNodeCoordinates(1)

print(x,y,z)

What is OPS?GitHubSupport

© 2024 OpenStaad

Built with Reflex