Grasshopper

algorithmic modeling for Rhino

Hi All,

I am trying to create a persistent list (that is what I think it is called but I'm not a programmer by any means) of points which I can then fine-tune individually until I've got the proper location for each. I've setup a demonstration in the attached files to make it more obvious. Here are the steps:

  1. Choose the curve (in this case a circle) -> (D)
  2. Choose the number of points you would like on this curve -> (N)
  3. The algorithm chooses (N) random points on the curve
  4. Use the slider to choose a point from the list of randomly chosen points (from 0 to N -1)
  5. For each of these points use the slider to move the point behind or forward (between -5 to 5 points) along the curve

Now I want to be able to do this but keep the results of my adjustments. Is this actually possible?

Thanks,

Ali

Views: 4681

Attachments:

Replies to This Discussion

sry for my laziness :/ 

here is my proposal :

get hoopsnake !

 

1. take section points

2. convex hull

3. make kind of kmeans relaxation (lloyds) on curve with desired number of groups (num of groups = desired n-gon sides)

here are effects :

blue = convex hull of all points

red = section of mesh

white = desired polyline

initial 12 random points

after relaxation

I think that you should not care about points that are out of optimized curve... this polyline is good approximation, it takes care about all section points, not only those on convex hull curve.  

Attachments:

convex hull area : 4990 sq cm

section curve area : 4473 sq cm

optimized pline area : 4266 sq cm

What do you guys think of this new file? I think this is working okay. I haven't figured out any other way of excluding the damaged drums from the calculation of the column centroid. But the results are okay:

I added a custom vb code I had written before to scale the contact surfaces so that the contact areas are the same between the new geometry and the mesh. You can check that out. I've also made a volume comparison. Overall, I think the volume is okay as well.

I just had a thought that maybe the criteria for whether to use a centre point could be if the centre of a circle inscribed inside the points lies within a certain tolerance from the centre of the convex hull or the curve itself. I'll investigate this as well. In the meantime, tell me what you think.

Attachments:

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