App.Vector() versus Base.Vector() ?
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
-
- Posts: 439
- Joined: Tue Apr 04, 2017 6:06 pm
- Location: SF Bay Area, California
App.Vector() versus Base.Vector() ?
I have been using App.Vector() instead of Base.Vector() in my scripts because it avoids importing Base. Is there any reasons to prefer using Base over App? I see a lot of examples with Base.Vector() so I was concerned about these two.
Re: App.Vector() versus Base.Vector() ?
A lot of Base members are present in App too (Vector, Placement, Matrix,...). Not sure what was the original intent, but it is like this since the prehistory of FreeCAD... AFAIK there is no difference, the resulting object is the same.