Python Forum
point transformation software in space
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
point transformation software in space
#1
Hello community,

Project to propose, I am looking for help to develop a tool in python, I am a geometer apprentice, I would like to have a personalized tool which can modify the points in space.

explanation, I use a measuring tool (TS07), I put TarGets (TG) on fixed locations and I put TGs on a Large Mechanical Part (LMP). at the position of my TS07, its center is at zero, I record the values of my TS07 at each TG, which gives this:

point 1 = dist TS07 => TG1
point 2 = dist TS07 => TG2
point 3 = dist TS07 => TG3
point 4 = dist TS07 => TG4
point 5 = dist TS07 => LMP1
point 6 = dist TS07 => TG1
point 7 = dist TS07 => TG2
point 9 = dist TS07 => TG3
point 10 = is not possible to see the distance of TS07 => LMP2

so in this case I move my TS07 to another location, I take the points:

point 10 = dist TS07 => TG1
point 11 = dist TS07 => TG2
point 12 = dist TS07 => TG3
point 13 = dist TS07 => TG4
point 14 = dist TS07 => LMP2

points 10 to 13 in terms of position are equal to points 1 to 4, only their center is different because it is the center of the TS07 which moves.

I would like this tool in 1 to recover in a table variable the data from statement 1 (point 1 to 9) and in a table variable 2 the points from the 2nd statement (point 10 to 14)

then we consider that points 1 to 9 are in the correct location and that the center of zero TS07 is the X0,Y0,Z0 of the points of reading 2.

then we would need a three-dimensional conversion matrix in order to reposition points 10 to 13 according to their position 1 to 4 and depending on this transformation point 14 will have a good position in space in relation to reading 1...

I would like to do them under Python because I need this tool to work under Mac and Linux.

I share with you 2 files statement 1 and 2

the LK points are the fixed positioning points

the points p are the points noted, so on file 2, I want to have the position of the points P relative to the center of the points of file 1, and when saving the file I want to have only the list of points P

Thanks for your help.

Attached Files

.txt   3LEG200123_P1.txt (Size: 955 bytes / Downloads: 35)
.txt   3LEG200123_P2.txt (Size: 815 bytes / Downloads: 44)
Reply
#2
Do you know the math and just looking for help with python coding, or do you need help with calculating the matrix that will transform points measured from different origins into the same coordinate reference system?

In the two files provided, what are the reference points and how do I know what points in p1 correspond to what points in p2?
Reply
#3
I need help calculating the matrix that will transform measured points from different origins into the same coordinate reference system and also for Python coding. Currently I only code in vba or vb.net. but to use the tool on mac and windows, I think python is a good tool. I train on it.

In the two files provided file 1 and 2, the reference points are the LK, the P points have no correspondence precisely I want to have their coordinates in the reference one, the reference file below in the image is file 2

the coordinate system is based on file 1, in the following image we clearly see the LK points with different coordinates, I would like all points to go under the reference coordinate system

[Image: GarlKjk-ReCc3DtORBnFTg.png]

https://app.screencast.com/TVdlpTyBruXtv
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Calculate transformation and Rotation Sandra2312 1 1,816 Jan-31-2021, 12:53 PM
Last Post: jefsummers
  from global space to local space Skaperen 4 2,338 Sep-08-2020, 04:59 PM
Last Post: Skaperen
  connecting the first point to the last point Matplotlib omar_mohsen 0 4,613 Jan-15-2020, 01:23 PM
Last Post: omar_mohsen
  regular expression for a transformation bluefrog 1 2,942 May-30-2018, 11:53 AM
Last Post: killerrex
  string transformation kerzol81 2 2,717 Apr-22-2018, 12:41 PM
Last Post: kerzol81
  Automation XML transformation vasilysmyslov 0 2,146 Aug-05-2017, 06:32 PM
Last Post: vasilysmyslov

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020