I think the issue is related to the projectPoint method:
Code: Select all
import FreeCAD as App
import FreeCADGui as Gui
import WorkingPlane
Gui.activeDocument().activeView().viewFront()
plane = WorkingPlane.plane()
plane.setup()
print(plane.projectPoint(App.Vector(300,0,300)))
print(plane.projectPoint(App.Vector(299.9999999999995,1.788139449843132e-04,299.9999999999995)))
print(plane.projectPoint(App.Vector(299.9999999999995,1.788139449843132e-05,299.9999999999995)))
print(plane.projectPoint(App.Vector(299.9999999999995,1.788139449843132e-06,299.9999999999995)))
Code: Select all
Vector (299.99999999999955, 1.788139449843129e-05, 299.999999999999)
Vector (299.99999999999903, 1.7881394498431244e-05, 299.9999999999982)
Vector (299.99999999999903, 0.00016204581124782942, 2718.6774151542527)
Vector (299.99999999999903, 1.7881394498431274e-05, 299.9999999999987)
Code: Select all
OS: Windows 8.1 (6.3)
Word size of FreeCAD: 64-bit
Version: 0.20.25065 (Git)
Build type: Release
Branch: master
Hash: 4de2ad46b2b9c78ac2721a0dbea7c19306261095
Python version: 3.8.10
Qt version: 5.12.9
Coin version: 4.0.0
OCC version: 7.5.2
Locale: Dutch/Netherlands (nl_NL)