Creating plane from 2 points

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
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!
Post Reply
OlegTemple
Posts: 3
Joined: Tue Mar 07, 2023 10:54 pm

Creating plane from 2 points

Post by OlegTemple »

Hi, I need to crate a part_plane using 2 points as reference (each as a vertex of a plane, placed diagonaly). Is there a way to do it?
P.S points are selected randomly on a tube
User avatar
onekk
Veteran
Posts: 6144
Joined: Sat Jan 17, 2015 7:48 am
Contact:

Re: Creating plane from 2 points

Post by onekk »

OlegTemple wrote: Tue Mar 28, 2023 2:21 pm Hi, I need to crate a part_plane using 2 points as reference (each as a vertex of a plane, placed diagonaly). Is there a way to do it?
P.S points are selected randomly on a tube
No a plane could be geometrically defined using three point.

A line is defined from two points.
GitHub page: https://github.com/onekk/freecad-doc.
- In deep articles on FreeCAD.
- Learning how to model with scripting.
- Various other stuffs.

Blog: https://okkmkblog.wordpress.com/
chrisb
Veteran
Posts: 53924
Joined: Tue Mar 17, 2015 9:14 am

Re: Creating plane from 2 points

Post by chrisb »

OlegTemple wrote: Tue Mar 28, 2023 2:21 pm Hi, I need to crate a part_plane using 2 points as reference (each as a vertex of a plane, placed diagonaly). Is there a way to do it?
P.S points are selected randomly on a tube
If you have selectable points on the tube you can attach the plane with attachment mode "Align O-X-Y". As noted, this will not be unique.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
chrisb
Veteran
Posts: 53924
Joined: Tue Mar 17, 2015 9:14 am

Re: Creating plane from 2 points

Post by chrisb »

An example may illustrate this:
The plane is attached to two opposite points of the heptagon:
SnipScreenshot-b46d46.png
SnipScreenshot-b46d46.png (14.84 KiB) Viewed 215 times
The plane can be turned around the connection line (file attached in this state):
SnipScreenshot-0b7782.png
SnipScreenshot-0b7782.png (18.52 KiB) Viewed 215 times
Attachments
twoPointsPlane.FCStd
(7.58 KiB) Downloaded 4 times
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
Post Reply