Grasshopper

algorithmic modeling for Rhino

GH Explode Curve does not work like the Rhino explode

Hello,

GH Explode Curve does not work like the Rhino explode. GH explodes in too many parts. I tested an alternative with the function Discontinuity, but a function to split curves by points does not exist.

Is there a GH function or a method that works like the Rhino Explode?

Cheers,

Bas

Views: 1625

Attachments:

Replies to This Discussion

the "function to split curves by points" you want is called "Shatter" - just provide the t parameters at which you want to split the curves (both CCX and Discontinuities will return the t parameters as an additional output).

Thanks for this answer. This is something I could not have guessed. 

Different Rhino and Grasshopper naming for the same thing or does it work differently?

Did you set the Recursive input to false?

Dear David,

Yes, I did as you can see below. In the ships bulbous bow one can see that the curves are exploded at more points, while after baking in Rhino, Rhino says that it can not explode a single curve.

With the Recursive input on it gives even more subcurves as you can see below.

As for split-by-points, since most points* are not on the curve, you have to split by curve parameters instead. The [Shatter] component allows you to split a curve into subcurves by providing the splitting parameters. If you have points on or near the curve at which you want to split, you must first figure out which parameters on the curve are closest to those points. You can do so with the [Curve Closest Point] component.

* to a first approximation all points.

Dear David,

The Shutter function together with the discontinuity does do the job as I derived the points from the discontinuity function of the same curves.

Bas

Dear David,

I was to quick with my conclusion that it works. 

Not all polycurves are 'exploded'.

Hope there is a better solution. The combination of [Discontinuity]-[Curve Closest Point]-[Shutter] does not provide a split at the point where the curves are joined at an earlier stage , at least not for all solutions.

Cheers,

Bas

Hi David,

When I connect the t (Curve parameters at discontinuities) to the t of the Shutter command it works better. (almost the same result as the Rhino Explode.

The green points are of the Discontinuity and the pink points are the results of [Curve Closest Point]-[Shatter].

What I would like to have is a function [Deconstruct PolyCurve].

Hi,

I have found the solution: an extra graft was needed to make the input of the Shatter function (the curves C and the parameters t) at the same branch. Happy me!

Attachments:

Mooi! 

Dank voor je hulp!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service