draft working plane, normal to a straight edge

A forum dedicated to the Draft, Arch and BIM workbenches development.
User avatar
bernd
Posts: 8468
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

draft working plane, normal to a straight edge

Postby bernd » Wed Jul 17, 2019 4:48 am

Is there smart way to get the working plane normal to a straight edge with FreeCAD Gui?
User avatar
microelly2
Posts: 4440
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: draft working plane, normal to a straight edge

Postby microelly2 » Wed Jul 17, 2019 9:20 am

Marios Workfeature macro
User avatar
yorik
Site Admin
Posts: 11574
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: draft working plane, normal to a straight edge

Postby yorik » Wed Jul 17, 2019 1:48 pm

That would be an interesting feature to add... But there are 360° possibilities around the axis... We need a way to define the X direction too
User avatar
bernd
Posts: 8468
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: draft working plane, normal to a straight edge

Postby bernd » Wed Jul 17, 2019 3:39 pm

yorik wrote:
Wed Jul 17, 2019 1:48 pm
But there are 360° possibilities around the axis... We need a way to define the X direction too
:o I missed that one ... since I needed just the plane in my case ...
User avatar
bernd
Posts: 8468
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland

Re: draft working plane, normal to a straight edge

Postby bernd » Wed Jul 17, 2019 4:15 pm

I needed it to make a circle which normal to an edge. I used Python to create the circle. But anyway I must admit it would be cool to set this.
User avatar
yorik
Site Admin
Posts: 11574
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: draft working plane, normal to a straight edge

Postby yorik » Thu Jul 18, 2019 2:07 pm

What we could do it simply rotate the current WP so the current axis direction becomes the edge direction (we still need to define which direction, as a linear edge can have two). The rotation around the edge will be rather uncontrollable, though...
User avatar
microelly2
Posts: 4440
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: draft working plane, normal to a straight edge

Postby microelly2 » Thu Jul 18, 2019 4:47 pm

I would prefer the normal and binormal vector to define the coordinate system for the plane.
I work with this direction tangent/normal or tangent/binormal here
https://www.youtube.com/watch?v=fScyrV9fB80

for the case here a 3rd combination normal/binormal is required
this are only some extra lines of code for another selection
https://en.wikipedia.org/wiki/Frenet%E2 ... t_formulas
User avatar
yorik
Site Admin
Posts: 11574
Joined: Tue Feb 17, 2009 9:16 pm
Location: São Paulo, Brazil
Contact:

Re: draft working plane, normal to a straight edge

Postby yorik » Fri Jul 19, 2019 2:54 pm

So the thing would be for ex. to select two edges, or an edge and a point... But then, the user could want to place the plane coplanar to it, not perpendicular...

I think this begins to bee too many options for the working plane tool. Maybe a better path would be indeed to integrate the workplane WB tools better in it?
mario52
Posts: 2682
Joined: Wed May 16, 2012 2:13 pm

Re: draft working plane, normal to a straight edge

Postby mario52 » Sun Jul 21, 2019 12:50 pm

hi

is it this ? (not perfect if the object angle change)
FCPlane02.gif
FCPlane02.gif (1011.21 KiB) Viewed 193 times

thanks but Marios Rentlau Workfeature macro


mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Dialog creation. My macros on Gist.github.