So I’m trying to smooth contours which will smooth out the topography. I realize I could probably use the MeshToolkit, but this graph seemed like it would work as well as teaching me a great deal about Dynamo, except I’m encountering many errors.
Here is the graph that I’m using and changing to make it work with my topography.
This one, I just can’t seen to get past. It’s in the middle of the graph. Took the toposurface, converted it to a polysurface, then created a bounding box and planes to intersect the geometry. The Geometry.Intersect is intersecting the planes from Plane.ByOriginNormal and the polysurface. But as you can see when trying to join the curves, it outputs a null. I assume this is because the list created from the Geometry.Intersect doesn’t just have lines but surfaces within it too. So I thought to explode the geometry that was intersected and remove the “Surface” items from the list then feed that into the PolyCurve.ByJoinedCurves. Then it would only have curves to join and should join them to how it’s expected. But that’s also not working. The node at the top that is cut off is the Geometry.Explode node. and this is the error from the polycurve node “Warning: One or more of the input types are not matching. Couldn’t find a version of ByJoinedCurves that takes arguments of type (__array)” The nodes that follow the polycurve node seem to not be working because the polycurve node is returning null.
I have also tried using the Flatten node after Geometry.Intersect, and it doesn’t help.
Here is the picture of the section in my graph.
Any help would be appreciated. Thanks.