Dear Grasshoppers,
How are you ? I hope all are doing well during holidays. Merry christmas to all.
I am here to ask about how to generate a minimal distance between curves (Only in height or Z-direction) to create a gap between. I tried the remap component to introduce a minimal distance in the lowest distance between curves (through intersected points), but they only make a minimal distance in specific points (projected points), not along curves. and that make curve more crooked and I could not keep them straight.
I saw that in the other topic, in this link Pattern generation with a minimal distance - #21 by Joseph_Oster, that the were able to manage to make a minimal distance between squares/rectangles, by using Anemone but the idea, in my case, is to keep numbers of curves and create gap between them vertically.
There is a way to separate each curve with a minimal input z-distance ?
Many thanks for your time,
Not sure what rule you have in mind when overlap (in BBox Z) happens … but see attached anyway.
BTW: g1, g2 are objects of Type GeometryBase. This Class supports the following:
GeometryBase_MinZDist_V1.gh (16.3 KB)
Thank you and sorry for the confusion in this picture, we see 4 curves overlapping but they are close and I want to input a minimal distance (vertical distance) between each curve so they don’t overlap for example and they can be distant.
Still your goal is unclear to me.
BTW: obviously I could add a few lines and allow that C# to work against any GeometryBase collection [List/Tree/etc]. This means that you can have results/actions(*) for any pair etc etc. All that if the BBox Pts.Z policy used is the right for you.
(*) say: If pairMinZ < someUserValue => reject both or reject first/second etc etc.
Better reset: describe what are you are after - in general (by forgetting the ZZTop part). For instance: given pairs of Polylines/Curves/Cats/Dogs I want to define/control Ccx events according this rule blah, blah.
BTW: Added a required check (if box.IsDegenerate != 0 don’t draw wire box)
GeometryBase_MinZDist_V1A.gh (126.5 KB)
2 Likes