Question

Move complex geometry to local origo

  • 13 November 2018
  • 5 replies
  • 6 views

Badge +21

I want to move all different sorts of geometry (points,lines,areas, 3D, surface, faces +++) to a local origo. I can find the correct x,y,z and I can use the 3DAffiner to move most of the data to the correct spot.

 

However it seems that the complex 3D-geometries that has a Transformation Matrix does not get updated (https://docs.safe.com/fme/html/FME_Desktop_Documentation/FME_Workbench/!FME_Geometry/Transformation_Matrix.htm) .

Is there any easy way to also 3DAffine these Matrixes or do I need to "unwrap" all these geometries and then re-wrap them again. Using deaggregating on all the complex geometires, and then aggregating them again afterwards?


5 replies

Badge +21

I see this article https://knowledge.safe.com/articles/54027/creating-and-using-geometry-instances.html - is @DaveAtSafe the expert geometryguy at Safe Software - or is there another one even better? I guess this is a difficult question since not even @takashi or @david_r have answered yet :)

Userlevel 4

I see this article https://knowledge.safe.com/articles/54027/creating-and-using-geometry-instances.html - is @DaveAtSafe the expert geometryguy at Safe Software - or is there another one even better? I guess this is a difficult question since not even @takashi or @david_r have answered yet :)

I don't work much with complex 3D geometries at all, so there's my excuse :-)

Userlevel 4

I see this article https://knowledge.safe.com/articles/54027/creating-and-using-geometry-instances.html - is @DaveAtSafe the expert geometryguy at Safe Software - or is there another one even better? I guess this is a difficult question since not even @takashi or @david_r have answered yet :)

Have you tried the Offsetter btw?

Badge +21

Have you tried the Offsetter btw?

Thats the rookie-version of the Affiner :) - But no, didnt try it untill now. Thanks for the tip. I tried it but with same issue.

 

 

Badge +3

you could try to

Read the matrix, reverse the transformation(s)?

Then apply your transformation.

and reapply the extracted transformation.

 

Extract transformation matrix from log as @takashi shows in this thread https://knowledge.safe.com/questions/4813/extracting-transformation-matrix.html

 

Parse the log (stringsearchers regexp. etc.) to get the trransformmatrix or use , again Takashi's parse python example.

Reply