draft working plane, normal to a straight edge

A forum dedicated to the Draft, Arch and BIM workbenches development.
Forum rules
Be nice to others! Respect the FreeCAD code of conduct!
Post Reply
User avatar
bernd
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

draft working plane, normal to a straight edge

Post by bernd »

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

Re: draft working plane, normal to a straight edge

Post by microelly2 »

Marios Workfeature macro
User avatar
yorik
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: draft working plane, normal to a straight edge

Post by yorik »

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
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: draft working plane, normal to a straight edge

Post by bernd »

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
Veteran
Posts: 12849
Joined: Sun Sep 08, 2013 8:07 pm
Location: Zürich, Switzerland
Contact:

Re: draft working plane, normal to a straight edge

Post by bernd »

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
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: draft working plane, normal to a straight edge

Post by yorik »

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
Veteran
Posts: 4688
Joined: Tue Nov 12, 2013 4:06 pm
Contact:

Re: draft working plane, normal to a straight edge

Post by microelly2 »

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
Founder
Posts: 13640
Joined: Tue Feb 17, 2009 9:16 pm
Location: Brussels
Contact:

Re: draft working plane, normal to a straight edge

Post by yorik »

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
Veteran
Posts: 4673
Joined: Wed May 16, 2012 2:13 pm

Re: draft working plane, normal to a straight edge

Post by mario52 »

hi

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

thanks but Marios Rentlau Workfeature macro


mario
Maybe you need a special feature, go into Macros_recipes and Code_snippets, Topological_data_scripting.
My macros on Gist.github here complete macros Wiki and forum.
Post Reply