Skip to main content

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

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)

 


Reply