Hello,
I haven't found anything about instersection between line/vector and a face.
Does anybody know if it exist ??
How to do ?
I would like to use it in a python macro.
Snapper : Line intersection with face
Forum rules
and Helpful information
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help
Also, be nice to others! Read the FreeCAD code of conduct!
Also, be nice to others! Read the FreeCAD code of conduct!
- petit_chat_noir
- Posts: 87
- Joined: Wed Oct 02, 2019 6:45 pm
Re: Snapper : Line intersection with face
Perhaps like this:
Code: Select all
doc = App.getDocument("demo")
line = doc.getObject("Line")
cyl = doc.getObject("Cylinder")
intersection = cyl.Shape.section(line.Shape)
print (intersection.Vertexes[0].Point)
print (intersection.Vertexes[1].Point)
- petit_chat_noir
- Posts: 87
- Joined: Wed Oct 02, 2019 6:45 pm
Re: Snapper : Line intersection with face
Yes good news, thanks all !