Skip to main content
Solved

Swap/Rotate profile onto XY-space

  • October 16, 2024
  • 1 reply
  • 36 views

mariaka
Contributor
Forum|alt.badge.img+13

Hi there,

I have severale profiles, which fly somewhere in 3D space.

The elevation always follows the z axis. The direction varies, but follows one direction in XY level.

I started like this:

  1. BoundsExtractor
    get the bounds (aka rotation axis)
  2. GeometryRefiner
    do some geometry refining
  3. 3DRotator
    rotate around the axis

Result:

3D view
2D view

red: rotation axis
grey/black: original geometry
green: rotated geometry

I expected the green geometries to be rotated around the axis, but instead they are rotated into 3d space 😵‍💫 I also tried to set the axis through the geometry (z = zmax-zmin), but with no success.

Can somebody help?

Cheers,
Maria

Best answer by mariaka

I found a way to solve this issue:

  1. get azimuth angle (HorizontalAngleCalculator)
  2. rotate everything to north (around z axis) (Rotator)
  3. swap coordinates (CoordinateSwapper)
  4. remove z values (2DForcer)

 

View original
Did this help you find an answer to your question?

1 reply

mariaka
Contributor
Forum|alt.badge.img+13
  • Author
  • Contributor
  • Best Answer
  • October 17, 2024

I found a way to solve this issue:

  1. get azimuth angle (HorizontalAngleCalculator)
  2. rotate everything to north (around z axis) (Rotator)
  3. swap coordinates (CoordinateSwapper)
  4. remove z values (2DForcer)

 


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