Skip to main content
Solved

Swap/Rotate profile onto XY-space

  • October 16, 2024
  • 1 reply
  • 41 views

mariaka
Contributor
Forum|alt.badge.img+14

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)

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

1 reply

mariaka
Contributor
Forum|alt.badge.img+14
  • 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)