Grasshopper

algorithmic modeling for Rhino

Hi Everyone

 

Currently  trying to writting a GH code that pushes a collection of points on a surface  away from a defined point also on the surface over the surface by changing the points current uv data. This is then feed into a code that creates overlapping sub surfaces for using in a panelling script.

 

Current WIP Workflow:

(Written)

Select point on surface for repulsion core

Calculaute on surface closest points within defined distance.

Evalualte surface at repulsion core to get plane

Create 2 pt vectors between core and selected point

Check angle between X vector on plane and vector on Plane.

Define which quadrant they are in by checking if within domains 0 to 90 , 90 to 180 etc. So to define if the calclation should be a +,+ calcuation or +,- calcualtion etc when it comes to calculating the new UV coordinates

Calculate bounds/domain from shortest to longest distance across surface from start point to points

 

(To be written)

Calculate depending on distance to point how far it must move on surface.

Move point on surface by changinging UV numbers depending on both quadant and distance from core.

Weave new moved points back into original Surface divide points.

 

Though all this seems alot of code for some thing that should be quite simple it would have though.

I have had a look at Kangroo but could not get it to work but that maybe just me not knowing how to use it fully yet.. So i am opening it up to the floor for your thoughts i'll continue though the current workflow unless someone cracks the code before me.

 

I have posted a section of the file explained above..(all the panelling etc has been removed to make it more simple.)

 

Thanks

Matt

Views: 558

Attachments:

Replies to This Discussion

Hey Matt...I am working on a similar script...Did you get a solution for it ??? If so, could you please share the script with me !!!

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service