Revit generated contours are mis-formed

I have been tweaking the number of points per foot of contour to add to the host. But even if I push it higher, revit is still drawing contours with weird jogs:


the points being added to the host:

Here is the internalized definition that generates the toposolid
import_internalized.gh (168.7 KB)

These two are the same height, if there is a slope in between you may need to do higher resolution (in the z) contours.

I doubled the resolution in Z and it doesn’t really improve.


I also had to trim up the surface around the edges to reduce the point count for the calculation to run.

I’m wondering if the jagged lines start to occur when the revit contour intervals differ from the GH parameter.

I see what you’re saying about the heights

but why is it making a jump and ignoring the points provided?

Just wanted to mention that the current geometries I am using are on this post. These are the contour lines that were traced from a survey map, rather than extracted from the surface patch. I am still running into the issue with contours cutting off.