I am during creating measure tool and I think it would be nice to make such on hover auto measurements also for pocket holes. But the pocket holes have ellipse shape from both sides. So I would like to get the coordinates of the vectors that lie on the ellipse, the most distant, that is, in line with the center and radius of the ellipse. Is there something like that already at FreeCAD library? more or less the points marked in the image below:
[solved] how to get points on the edge of the ellipse
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Be nice to others! Respect the FreeCAD code of conduct!
[solved] how to get points on the edge of the ellipse
Last edited by dprojects on Sat Sep 24, 2022 3:51 pm, edited 1 time in total.
Thanks
Darek
github.com/dprojects
workbench for woodworking is available at: github.com/dprojects/Woodworking
Re: how to get points on the edge of the ellipse
Code: Select all
edge.Curve.value(0)
edge.Curve.value(math.pi / 2)
# etc.
Re: how to get points on the edge of the ellipse
Thanks Roy, this is what I was looking for.Roy_043 wrote: ↑Sat Sep 24, 2022 3:15 pmCode: Select all
edge.Curve.value(0) edge.Curve.value(math.pi / 2) # etc.
Thanks
Darek
github.com/dprojects
workbench for woodworking is available at: github.com/dprojects/Woodworking