Grasshopper

algorithmic modeling for Rhino

Hatch from overlapping/ intersecting open curves in RhinoCommon SDK ?

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

Views: 2003

Replies to This Discussion

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/


Attachments:

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.

Attachments:

RSS

About

Translate

Search

Photos

  • Add Photos
  • View All

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service