Grasshopper

algorithmic modeling for Rhino

Hey there,

attached you can find three PNG files. I have those random points and I want to draw polylines through them (10.PNG). About 6-8 points are on the same Z-Plane and 15-17 point are on the same Y-Plane. The result should be as shown in 11.PNG. I connected the points with "_CurveThroughPt". The result are 16 curves on Z-Planes and 8 Z curves on Y-Planes. Now I would like to automize this process, because I have 500 of these parts. I already tried my best as you can see in 12.PNG.

 

Thanks for your help

Views: 360

Attachments:

Replies to This Discussion

Hi Florian, these points don't seem that random to me. Could you upload your files so we can have a look where they came from?

Hi Pieter,

 

attached you can find the file. Thanks for your help!

 

Florian

Attachments:
Now I don't understand the question: are you recreating the curves you already made in your Rhino file?
No, I only have the points. And I want to create curves of them. I did create the curves in this example file manually to show how the result should be. Initially I only have the points and want to create these 20 curves of it with grasshopper.
Okay. How did you get those points? Because they are at least random in their order. And, do you also have the missing 4th points "in the corners"? (I see only three in picture 10.png)
The Problem is, that there is no real repetition of the points. You got one part where there are 8 vertical rows and 16 horizontal rows. As you can see the point numer on each plane can change too. But there are parts where there are more or less rows. Thats why I tought the thing would be to connect all the points on one horizontal or vertical plane. Like an expression: When point is on the same plane get all these points and connect them with the polyline (12.PNG). But perhaps I'm on the complete wrong way? Thank you so much
Hmm, still if you're able to find a way to sort and connect the right points, I think you'll still need those "missing corner points", otherwise these curves aren't necessarily in the same plane/surface, right, or..?
Danny help us :)
Take a look on this GHX file. I got as result all the points again. The only problem I have is that the points are not grouped. I need the intersections with one plane kind of grouped so I can use the Polyline command. Or is this a stupid idea?
Attachments:

The result of the Insection should be ordered like this. I tried it with graft tree and branches etc. But I couldn't do it

 

Set 1:

Point 1 (X, Y, same Z)

Point 2 (X, Y, same Z)

Point 3 (X, Y, same Z)

...

 

Set 2

Point 6 (X, Y, same Z)

Point 7 (X, Y, same Z)

Point 8 (X, Y, same Z)

Point 9 (X, Y, same Z)

....

 

and so on. Then I could use the Polyline command to connect all the points in Set1 to one Polyline, all the Points in Set2 to one line no matter how much points are in one Set

 

Hello,

does this work ?

 

Depending on the points you give, it may not work, the fix should be to extract the main U and V directions from the surface the points are on, and use these U and V instead X and Z. You can probably get U and V by analyzing the convex hull. Or something.

Attachments:
Yes Systemik it does, nice! Thanks for jumping in:)

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