Springs nodes: Mesh.ToPolySurface

Hello everyone,

When I use the Topography.Mesh and Springs.MeshToPolySurface nodes to make a polysurface out of a topography revit just crashes without a warning.
The goal of the script is to create a family on a topography, within de perimeter of some model lines, with on the bottom the shape of the topography and on top it’s just a straight line on a certain level. It works on really simple topography’s (±10 points) but when the topo has more points (±450-500) to it. It just crashes Dynamo and Revit without warning.
I attached the script made in V2.1. I used springs nodes and clockworck package.

Dynamo script.dyn (101.4 KB)

Kind regards


The “Springs.MeshToPolySurface” node was a bit of an experiment of mine. It uses threading to run things in parallel for extra speed. While that worked fine on older versions of Dynamo and Revit, it seems something in the geometry kernel of either one changed over time and now that is not possible.

It seems to work as expected for some meshes and crashes for others:

I’ll simplify the node and make it single threaded for the next release.

1 Like

Hello Dimitar,

Thanks for your reply.
Do you already know when the next release is released?
And do you know a workaround for this until that time?

Just pushed the update. It will now run on a single thread by default, just like regular nodes. I You’ll still be able to override that and specify the number of threads, tho there’s a warning in the description of what may happen.

I also did some minor code cleanup and removed some generator code that might have been contributing to the instability. Do you mind sharing the topo that was causing the crash?