algorithmic modeling for Rhino
Hi,
since Rhino 5, the Hatch Command has this very useful feature, which finds the Region to make a Hatch even from a bunch of open, overlapping/ intersecting Curves. For that, the the User needs to specify a point inside of the desired region to pick. Unfortunately, this feature does not seem to accessible via the SDK - correct ?
David, Steve is there some chance this could be exposed in the near future ?
I am trying some workarounds, e.g. making a flat box around those curves and splitting resulting surface with them, then picking the trimmed surface whose centroid is closest to the combined centroid of the curves - However with increasing complexity of the curves the surface-split tends to produce invalid results.
Many thanks,
Philipp
Tags:
I suppose it's similar to CurveBoolean algorithms, which are also not exposed as far as I know.
I agree it would be nice to have these available.
--
David Rutten
david@mcneel.com
I've tackled this problem today using recursive Hoopsnake. I should port it to a script component as soon as I find the time!
Explanation here: http://pedroazambujavarela.net/grasshopper-pick-region/
I have retackled again.
This solution is more elegant in that it dispenses recursive components. But it is less elegant in that it takes some seconds for many curves.
Instead of using recursion to find "next" boundary curves, it uses the SurfaceSplit component to break a bounding rectangle to little chops and then finds the one closest to the given point.
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by