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
Tags:
Welcome to
Grasshopper
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
Added by Parametric House 0 Comments 0 Likes
© 2024 Created by Scott Davidson. Powered by