SO here’s my grasshopper file try, the red thing on white background is my result… The beautiful thing on grey background is the goal… Data conversion failed from Brep to Rectangle is on the red component so the voronoi… What should I do to make it work?
I don’t understand what’s the problem on my boundary, it says “1. Planar surface routine returned no results”
and because of the absence of extrude rectangle, where should I put it to play on the Z axis? Cause my computer’s really long to process modifications
Offset Curve requires a number value, not a vector. You want negative offsets in this case (“insets”, not offsets). It’s not a good idea to offset from an offset curve. Negative offsets can fail on some shapes when the value is too great. The Clipper offset often does a better job.
You don’t need RDiff to get the surfaces you want.
I had to use the Clipper PolyOffset because the standard GH Offset failed too easily. I didn’t bother with pre-existing points you used in PopGeo, which I replaced with Pop2D. I fixed the problem with random roof heights. The surface is internalized, no need for that Rhino file.
This is slow so be patient… There are 23,476 buildings! In general, it’s always better to work with a smaller surface and fewer points until the code is working correctly.
Voronoi_2020Sep21c.gh (30.0 KB) (DEPRECATED!!! Use Voronoi_2020Sep21c2.gh below)
P.S. I made a subtle mistake. I switched the wires and used the outer curve instead of the inner curve for DivDist which has a different outcome. Fixed in this version, also using a larger inner offset so bigger buildings. And some anomalies?
Be sure to see my P.S. above. Other than a very wordy description, there was no way to do less work and demonstrate how to do this. Some of the buildings end up partially below the sloped surface. Some of them are oddly shaped in part because there may be a small remainder after DivDist.
Yeah I saw thanks, I just couldn’t reply because apparently we can’t reply more than 20 times in our forum … But it’s amazing thank you, I learned a lot!
In the meantime, I thought… While I’m at it, I might as well learn more for future needs. Now that I have this,