import FreeCAD as App # Create a new vertex at (1, 2, 3) v = App.Vector(1, 2, 3) vertex = App.Part.Vertex(v)
import FreeCAD as App # Create a new vertex at (1, 2, 3) v = App.Vector(1, 2, 3) vertex = App.Part.Vertex(v) # Access the vertex properties x = vertex.x y = vertex.y z = vertex.zIn this example, we create a new Vertex object as before. Then we access the X, Y, and Z properties directly to retrieve the coordinates of the point. Package library: FreeCAD