I have been surprised to see that intersection of 2 lines return a list of points and not a list of vectors.
Code: Select all
line1 = Part.Line()
line2 = Part.Line(FreeCAD.Vector(0,0,0), FreeCAD.Vector(1,0,0))
line1.intersect(line2)[0] # -> <Point (0,0,0) > which is a Part.Point
But what is a Point ? Why does it exist ? Is there a better way to convert it to a vector than :
Code: Select all
# p is a Part.Point
vec = FreeCAD.Vector(p.X, p.Y, p.Z)