voneiden / ocp-freecad-cam

CAM for CadQuery and Build123d by leveraging FreeCAD
https://pypi.org/project/ocp-freecad-cam/
Apache License 2.0
31 stars 3 forks source link

Visualizer: input vector has zero norm #18

Open voneiden opened 1 year ago

voneiden commented 1 year ago
return gp_Dir(circle_normal.X(), circle_normal.Y(), circle_normal.Z())

OCP.Standard.Standard_ConstructionError: gp_Dir() - input vector has zero norm

voneiden commented 1 year ago

Looks like helix can generate illegal g-code where both I and J are zero on an XY plane arc, huh.

ivylinden commented 4 months ago

Hello, I'm also experiencing this problem, do you know how to solve it

voneiden commented 4 months ago

@ivylinden The error itself means that there is a motion vector that is (probably) zero length.

If you can provide a bit more context of what caused it (line of code + stack trace) that'd be great. Ideally these should be warnings instead of errors.