Grasshopper

algorithmic modeling for Rhino

C# point bewtween lines/Problem converting datatypes?/Looping through two sets of points

Hello world,

today tried dividing 2 Lines connecting the point sets looping through them.

Occured  errors i think it is about convertoing data types/declaring the variables corrctly.

Maybe someone could have a look, got stuck and dont know where to begin.

Thanks!

Views: 1249

Attachments:

Replies to This Discussion

Hi Peter,

would be nice to do something a little bit crazy, i was thinking about how to give it a little bit more control.

The shortest walk plugin has the possibility to give some wanted paths.assigns mor than 1 start,- and endpoint.

Or for example the Menges spider stuff:

http://www.arch2o.com/elytra-filament-pavilion-unveiling-achim-menges/

or this:

http://icd.uni-stuttgart.de/?p=12965

i really like this kind of experimental architecture.

I am still far away to can produce this. Would just do.My future goal would be doing somthing similiar with the use of millipede or similiar to make it not just random.

BUt maybe its the next step applying some recusrion on the lines. This weekend i had no time to think more in this direction. Hope afterworks these days i can dig a little bit deeper in this themes.

That what i tried friday night:

Maybe you have an idea and are interested in help pointing in a direction.

If not i can understand dont want anybody to do my work. maybe i need to declare better what i want.

regards

Try the attached (it's just a starting point (one out of many directions) NOT a solution by any means).

PS: If you have aspirations to become a pro in our trade (AEC) ...  coding is the only way to cut the mustard. People who claim the opposite are just amateurs (or "pros").

Attachments:

Thanks Peter,

like that you kept it simple.

Trying get better in C# to get more opportunities within GH and later maybe some solid modeller.

BTW: That's another far more efficient approach (but requires "slightly" more lines of code).

1. Divide randomly (or not) a circle.

2. Connect points (randomly or all).

3. Find all ccx events and make the regions.

4. "Radially" project the resulting region nodes to some target surface (Morph Methods are NOT the way to do this). Filter regions with more than 4 nodes (for obvious reasons).

5. Do something like this or that:

And this attached (minus the internal thingy) is a good point to start for similar things (about a million times faster than the ShortPath approach: i.e do business in a flat mode and then "map" things to some target surface or use a physics engine the likes of Kangaroo2): The challenge is to mastermind a very fast way to do the resulting regions/polylines/point Trees (and thus having on hand stuff to proceed to the next steps):

That said: I've seen some suggestions in Code Project to do it ... that ...are ... a bit optimistic (they require a year and a half for finishing the job).

Attachments:

BTW: In the mean time and back (kinda) to your initial thread  ... here's what happened if you add some lines of code more just for fun:

From this:

To that:

PS: In fact recursion is widely used in most AEC cases ... thus this entry level thingy may shed some light on that matter.

Attachments:

thanks Daniel and Peter, will have a look at lunchtime!

Hi Peter,

cant answer anymore so i am answering here. The projected one looks really neat!Also the Maelstroem one. Need some time to read all the code and try to understand it. Also doing some visual-studio tutorials to get a better c# understanding.Monday is holiday here so i will have some time look closer on your codes.

thanks one time more for the inspiration!

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