Skip to main content
Question

Move complex geometry to local origo

  • November 13, 2018
  • 5 replies
  • 29 views

sigtill
Supporter
Forum|alt.badge.img+24

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

sigtill
Supporter
Forum|alt.badge.img+24
  • Author
  • Supporter
  • November 14, 2018

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 :)


david_r
Celebrity
  • November 14, 2018
sigtill wrote:

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 :-)


david_r
Celebrity
  • November 14, 2018
sigtill wrote:

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?


sigtill
Supporter
Forum|alt.badge.img+24
  • Author
  • Supporter
  • November 14, 2018
david_r wrote:

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.

 

 


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
  • November 14, 2018

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.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings