Skip to main content

All went well when i exported. I open the file and my contours are in 3d. Each curve as is Z value correct. After, I have tried to use the "SherbenderGeneralizer" to reduce the number of vertices.

When I exported the file again, my contours have lost the 3d dimension. Each curve as 0.000 z value.

 

Can you help me? Sure I am doing something wrong.

 

Many thanks

Not sure if the SherbenderGeneralizer creates 2D data from 3D data, but you can easily elevate the polylines again using the elevation attribute (coming from the ContourGenerator) and the 3DForcer transformer.


Actually, there doesn't seem to exist any Generalizer in 3D ( although there is a suggested Idea: https://community.safe.com/s/idea/0874Q000000TlhnQAC/detail )

 

A hunch: you might be able to solve it by storing the z-value for each contour line as an attribute, and after the SherbendGeneralizer you could set the z-value back by using the attribute value. This should work as long as the generaliser doesn't create new contourlines, and only simplifies the existing ones, of course.


Thanks a lot. I will try those solutions and give feedback to you


Reply