Grasshopper

algorithmic modeling for Rhino

I'm looking to achieve in GH what the Rhino Curveboolean tool does :

select a bunch of curves (be they open or closed) , pick points to add regions together, and output a clean closed curve.

Sadly, RDiff, RInt and RUnion components only work with closed curves.

Examples of workarounds most welcome !

Cheers,

--

Olivier

Views: 15010

Replies to This Discussion

just thinking about it, it seems that it would be pretty difficult, i could see getting the individual regions that are created with the intersecting lines, but how would you know what regions to combine and which to ignore?

I'd use some vector magic to create points which are most likely inside the loops I wish to select.

It would not work for extreme cases, but considering the input curves that I have, it should be a piece of cake.

As a workaround, I'm trying to use the "Multiple curves intersector" component + "Shatter curves" + Join curves, but I'm stuck at the "Shatter" level...

Cheers,

--

Olivier

Attachments:

Here is something I am playing with. (Cluster password protected and time limited)

Adding points parameter to work similar to rhino BooleanCurve is possible.

Contact me if it looks interesting.

Attachments:

Hmmm... Version 0.9.0014 here.

I/O error ; file does not open.

Looks great anyway !

--

Olivier

Probably bugged under rhino5 (I made it with GH on Rhino4).

Meanwhile perhaps this will solve your problem: (made with MCX)

Attachments:

Oh Yeah !

Thank you so much , this works like a charm !

Now comes the harder part : figuring out why :)

By the way, I realized that I still had version 0.9.0006 , and that's why your Union definition was not working...

Silly me...

Cheers,

--

Olivier

wow looks great, but I can't use the file... it's probably already december !

would it be possible to have a look ? I need something similar but finding all the inner closed cells... Any thoughts ?

Does this one work ? (0.90014 needed)

What are the errors if it doesnt ?

Attachments:

Hey thanks for the answer.

However, it's not doing anything, your cluster doesn't return anything. What should I put inside the "cells selecting" point input ? I tried with exterior and inside points, but still nothing... I have 0.90014 installed on rhino 5.

hello ! i'm still can't make it work... Any ideas why ?

Oh sorry, I think it doesnt work because of a tolerance problem.

Set the rhino tolerance to 0.001 or lower in Tools->Options->Units (in rhino).

That should be working then.

If your curves create boundaries for very small regions, they have to be taken into account, if tolerance is too high they are ignored and it bugs the process.

Warning: it is a bit slow with 20 to 30 curves, and will take forever with more (exponential in time).

oh yeah great, it works, thanks a lot !

i just ran it on a couple of hundreds curves... takes forever :D

just a question : should it be working till january or does it really have a expiracy date ?

thanks anyway, great tool

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service