I'm new to QGIS. I extracted contour lines from a raster layer, set Z values and exported to DXF to be able to import into Blender. When visualizing the contours in QGIS they look fine. But when the exported DXF is imported into Blender the contour lines are ragged and intersecting (examples below). I tested opening the file in FreeCAD and it looks the same as in Blender.
I guess I'm doing something wrong when exporting the layer from QGIS. I exported right-clicking the layer, Export -> Save features as -> DXF with No symbology and Geometry automatic.
Any advice what may be causing this and how to fix it?
I'm running QGIS version 3.26.3-Buenos Aires on Ubuntu 20.04.


