Point alignment function

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!
Tilarta
Posts: 12
Joined: Sat Aug 10, 2019 4:53 am
Contact:

Point alignment function

Postby Tilarta » Sat Aug 17, 2019 12:38 am

To make a complex procedure more simple, where can I find a function to align two specific points of two seperate objects to the exact same space?
See the image below for the task I am attempting to perform:
DBwedge2Point02.png
DBwedge2Point02.png (6.92 KiB) Viewed 258 times
I am hoping if the 4 points of the wedge align precisely to their designated points on the second shape, I can focus on making the end of the wedge into a moderately sharp point to become an approximation of a triangular point/pyramid.
DBSword02.FCStd
(64.04 KiB) Downloaded 2 times
TheMarkster
Posts: 1052
Joined: Thu Apr 05, 2018 1:53 am

Re: Point alignment function

Postby TheMarkster » Sat Aug 17, 2019 4:41 am

Make a facebinder of that diamond-shaped tip, then extrude the facebinder in Part workbench, 3mm or so. Change the taper angle in the minus direction gradually until you get a point you like.
Snip macro screenshot-bdfab2.png
Snip macro screenshot-bdfab2.png (39.98 KiB) Viewed 244 times
Tilarta
Posts: 12
Joined: Sat Aug 10, 2019 4:53 am
Contact:

Re: Point alignment function

Postby Tilarta » Sun Aug 18, 2019 7:46 am

I am uncertain if the question I asked was understood.

What I wanted to know was if there is a function to take two seperate points of two completely different objects and automatically align them so they occupy the precise same co-ordinates on the object grid:
DBwedge2Point03.png
DBwedge2Point03.png (10.72 KiB) Viewed 207 times
Once this is done with all 4 base points of the wedge, in theory, it should align exactly with the diamond shape and thus, eliminate the complex procedure of guessing where the points of the diamond exist (the number is incredibly exacting and not on a predictable grid reference).

Then having, achieved this task, I can just move around the opposite four points to get the sharp end I desire.
User avatar
easyw-fc
Posts: 2613
Joined: Thu Jul 09, 2015 9:34 am

Re: Point alignment function

Postby easyw-fc » Sun Aug 18, 2019 8:36 am

Tilarta wrote:
Sat Aug 17, 2019 12:38 am
To make a complex procedure more simple, where can I find a function to align two specific points of two seperate objects to the exact same space?
See the image below for the task I am attempting to perform:
You can have a try at Aligner from Manipulator WB
Tilarta
Posts: 12
Joined: Sat Aug 10, 2019 4:53 am
Contact:

Re: Point alignment function

Postby Tilarta » Sun Aug 18, 2019 9:45 am

I added the Manipulation Workbench.
It's getting closer to the function I need, but isn't quite right:
DBwedge2Point04.png
DBwedge2Point04.png (198.2 KiB) Viewed 179 times
It moved the entire Wedge instead of the point selected.
When I selected a second point to align, it moved it again.

I'm looking for something that will move the points only without preserving the shape/size of the object being relocated.
chrisb
Posts: 17475
Joined: Tue Mar 17, 2015 9:14 am

Re: Point alignment function

Postby chrisb » Sun Aug 18, 2019 9:57 am

In parametric modeling you cannot just move a point from some arbitrary shape. You may have to go back in the construction history and find the state where the shape in question is constructed. There you have to apply the appropriate changes.
User avatar
bejant
Posts: 5803
Joined: Thu Jul 11, 2013 3:06 pm

Re: Point alignment function

Postby bejant » Sun Aug 18, 2019 11:50 am

Tilarta wrote:
Sun Aug 18, 2019 9:45 am
I added the Manipulation Workbench.
It's getting closer to the function I need, but isn't quite right:
I'll offer another suggestion:

To align the two parts you can try (from the pull-down menu) Edit > Alignment.
https://www.freecadweb.org/wiki/Std_Alignment

From there you can change the size of your Prism to fit onto the blade.
TheMarkster
Posts: 1052
Joined: Thu Apr 05, 2018 1:53 am

Re: Point alignment function

Postby TheMarkster » Sun Aug 18, 2019 5:21 pm

Ah, now I see what you are trying to do. You want to both align and resize all in one go. I don't know of any 3d solids that have that capability in FreeCAD. It might be possible to configure the wedge using the expression engine to take placement coordinates from various Part Vertex objects for the various properties of the wedge object. You could drag the Part Vertex objects around using the transform dragger tool. As an example, the z placement of a Part vertex would be referenced by one of the z properties of the wedge. It would complicated to setup, likely requiring a lot of trial and error, but perhaps doable. It would be best done in a macro so it could reused. As an example of this, see the attached file. In it I have a single Part Point (Vertex) linked to the zmin property of the wedge. Double click the vertex from the tree and drag it up or down in the z direction. When you clock click ok the Wedge zmin property will change to where the point is now located (within reason, as we can't ask FreeCAD to produce the impossible wedge.) This is just a proof of concept. You would need to align other properties of the wedge, for example ymin and xmin to points, too. Aligning these control points to the sword tip could be done with manipulator or even directly from the placement task easily enough. The problem really is this is way more complicated than other ways of doing this would be.
Attachments
wedge_controller.FCStd
(4.11 KiB) Not downloaded yet