Hi,
Due to 3d printing manufacturing constraints i’m lookin for an easy/fast way to calculate the height difference between tilted surfaces. The value I need is the minimum distance between the 2 adjacent edges. This height-value needs to be above a certain threshold.
My starting geometry are Voronoi cells with a offset and a random orientation. The current methods works (see attached gh file) but is a bit clumsy and slow when using many cells (yet the best I can think of). It works by exploding the cells, make a srf between adjacent edges, and test the vertical height difference by calculating the height using the know hypotenuse (crv length) and offset distance.
In the image, the green edge surfaces represent a height difference above the threshold. And red below
Later in the script I want to use these height values with Galapalos, so the faster the scripts runs the better.
Any tips for an alternative approach and hopefully speed up my code? Thanks in advance for anyone willing to have a look
GetHeight_Adjacent Surfaces.gh (35.4 KB)