[Feature requests] Working points, lines and planes

Have some feature requests, feedback, cool stuff to share, or want to know where FreeCAD is going? This is the place.
Forum rules
Be nice to others! Read the FreeCAD code of conduct!
User avatar
Pauvres_honteux
Posts: 262
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

[Feature requests] Working points, lines and planes

Postby Pauvres_honteux » Sun Oct 13, 2019 12:16 pm

Since creation and coupling of points, lines and planes doesn't work satisfying or at all or different depending on workbench as it stands now. I'd like to propose a fresh start as per this list for the coding savvy person:

PS. Naming shall be made intuitive. Ask here first what we mere mortals think of naming these "thingies". I guess most of this already exist but need renaming and an "just-works" and an graphical consistency overhaul. Preferably this shall be done as pop-up windows to make room for more 3D real estate. Think triplus "GLASS".

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Point-datums (short: point)

- point as coordinates with respect to the file coordinate system or a user created ditto.
- point as child of another point in the file coordinate system or a user created ditto.
- point as U-V-coordinates in a plane with respect to an already existing point on that plane.
- point as U-V-W-coordinates above/below (W being the plane normal) the plane with respect to an already existing point on that plane.

- point as coordinates in/on a surface with respect to file coordinate system or a user created ditto.
- point as U-V-coordinates in/on a surface with respect to an already existing point on that surface.
- point as U-V-W-coordinates above/below (W being the surface normal) a surface with respect to an already existing point on that surface.

- point on line of any shape or form with respect to the file coordinate system or a user created ditto or an already existing point on that line, including its endpoints.
- point as an tangency extrapolation(both directions) of a line of any shape or form at an already existing point on that line, including its endpoints.

- point/s between two other points, via a relative value between 0 and 1.
- points repetition on an arbitrary surface in a rectangular or polar pattern.
- point on extrema for a surface with respect to file coordinate system or a user created ditto, NOT with respect to the surface U-V coordinate system.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Line-datums (short: line)

- line between two already existing points.
- line as coordinates with respect to the file coordinate system or a user created ditto.
- line as coordinates with respect to another point with respect to the file coordinate system or a user created ditto and/or the other point as zero.
- line as U-V-coordinates or file coordinate system or a user created ditto in a plane with respect to an already existing point on that plane.
- line as an angle with respect to another line/curve(tangent) or file coordinate system or a user created ditto in a plane with respect to an already existing point on that plane.
- line following a surface curvature (geometry on support) with respect to file coordinate system or a user created ditto on a surface with respect to an already existing point on that surface.
- line as a direction with respect to file zero coordinates or user defined coordinate system (may be in a plane/ on a surface) with respect to a point on that plane/surface.
- line bisecting two curves.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Plane-datums (short: plane)

- plane as an offset from file coordinate system or a user created ditto or other planes.
- plane through a point and paralell to already existing plane.
- plane angled to another plane with respect to a rotation axis of choice.
- plane through three points.
- plane through two straight lines.
- plane through a straight line and a point (not on the line).
- plane through planar curve.
- plane normal to arbitrary curve of choice and through a point on that curve.
- plane tangent to arbitrary surface through a point on that surface.
- plane via equation.
- plane/s between two other paralell planes, via a relative value between 0 and 1.
User avatar
GlouGlou
Posts: 2008
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: [Feature requests] Working points, lines and planes

Postby GlouGlou » Sun Oct 13, 2019 7:03 pm

something like workfeatures wb? :roll:
User avatar
Pauvres_honteux
Posts: 262
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

Re: [Feature requests] Working points, lines and planes

Postby Pauvres_honteux » Mon Oct 14, 2019 5:03 pm

GlouGlou wrote:
Sun Oct 13, 2019 7:03 pm
something like workfeatures wb? :roll:
I've made you a file to play with:
Point_Line_WorkFeatureDev.FCStd
(6.85 KiB) Downloaded 10 times
User avatar
GlouGlou
Posts: 2008
Joined: Sun Apr 05, 2015 9:02 am
Location: La Rochelle, France

Re: [Feature requests] Working points, lines and planes

Postby GlouGlou » Mon Oct 14, 2019 5:43 pm

you can get the objects dynamic.
Attachments
Capture.PNG
Capture.PNG (25.63 KiB) Viewed 522 times
RatonLaveur
Posts: 468
Joined: Wed Mar 27, 2019 10:45 am

Re: [Feature requests] Working points, lines and planes

Postby RatonLaveur » Mon Oct 14, 2019 7:08 pm

These days i apply to Freecad the following rule:

If I can think of it, someone probably already did code it.

WorkFeatureWB seems like what you need. Although what use case would require the user to setup their coordinates manually I cannot fathom. That really does not sound like parametric design intent.
User avatar
Pauvres_honteux
Posts: 262
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

Re: [Feature requests] Working points, lines and planes

Postby Pauvres_honteux » Mon Oct 14, 2019 7:19 pm

Then it's just the rest to be done.

See Loft improvement - Part design for inspiration.
User avatar
Pauvres_honteux
Posts: 262
Joined: Sun Feb 16, 2014 12:05 am
Location: Far side of the moon

Re: [Feature requests] Working points, lines and planes

Postby Pauvres_honteux » Tue Oct 15, 2019 7:06 pm

Any coder interested in starting to clean up this basic stuff?

That is, making a single icon to click on which in turn launches a pop up window containing everything needed to create, for example a point. Another window for creating a line and so on.

The point, line or plane produced shall be super simple to utilize as an argument in any function needing that input.

When this is done, all other creating methods can be ditched/replaced with this one. This shall/will be the one-stop-shop for creating points, lines and planes. No more scattering around with different ways of creating these really fundamental features.
User avatar
Zolko
Posts: 719
Joined: Mon Dec 17, 2018 10:02 am

Re: [Feature requests] Working points, lines and planes

Postby Zolko » Wed Oct 16, 2019 6:42 am

RatonLaveur wrote:
Mon Oct 14, 2019 7:08 pm
If I can think of it, someone probably already did code it.
yep, all these things exist already and are called Datum objects. They come with the PartDesign workbench, although they should be the basic building blocks for all FreeCAD designs, and what you want to use is their mapping mode. What you are asking for here is not a feature request — it exists — but an UI/UX update to group these existing features differently.

And I agree with you, these very powerful features are mostly unknown and hidden. For no reason I can think of.
try the Assembly4 workbench for FreCAD v0.19
install with Tools > Addon Manager > Assembly4 — tutorials here and here
chrisb
Posts: 22411
Joined: Tue Mar 17, 2015 9:14 am

Re: [Feature requests] Working points, lines and planes

Postby chrisb » Wed Oct 16, 2019 8:44 am

There was a post with some macros for creating datum geometry outside of PartDesign, alas, I cannot find it.
chrisb
Posts: 22411
Joined: Tue Mar 17, 2015 9:14 am

Re: [Feature requests] Working points, lines and planes

Postby chrisb » Wed Oct 16, 2019 8:50 am

Just after finally writing my previous post I had the right idea for searching ...
In this post in the german forum are some macros for DatumGeometry in other WBs.