Grasshopper

algorithmic modeling for Rhino

Hi everyone!

I have a question about how to generate the summation of 4 vectors, which all start from the same point, in order to get the vector normal of that specific point. Would be great if someone could help.

Views: 1204

Attachments:

Replies to This Discussion

Vectors don't start anywhere, they are merely directions and magnitudes. If you want to compute the average of a set of vectors, then you can use the [Average] component. If your vectors have different magnitudes, then the average will be weighted towards the longer ones, so if you don't want that, you'll need to unitize your vectors first. Adding four vectors together can be done using the [Addition] component (that'll be annoying though as it requires 3 of them). If your vectors are already in a single list, then you can use [Mass Addition] to add them all in one go.

--

David Rutten

david@mcneel.com

Poprad, Slovakia

Is it important that you keep each panel a distinct mesh?  Because if you join and weld them, you will then be working with one mesh whose vertex normals will be unified and it's really simple to do it.  However, if you want to keep each panel as a mesh distinct from one another, you can use "closest points" to identify the index of the nearest points and collect the related normals for summation.

Attachments:

thank u for your reply. I have attached a simplified version of my file to show the exact problem i am having. the surface should remain as one unified mesh...

Attachments:

i tried adifferent approach, but I still can't figure out how to generate the vector summation of 4 neighbouring panels. closest point won't work

Attachments:

Thank u!!

Finally managed to solve my problem with the help of your file!

It's not really the 'normal of a point'.  It's the resultant vector of the sum of the four normals of four adjacent surfaces placed at the common intersection of all four surfaces.  I guess it's true meaning depends on what you do with it next.

Attachments:

Thanks! your solution is similar to one I have found and works just as well for what I intend to further do with it. I intend to apply this on my real panalized surface in order to create a on offset of my surface thus using it to generate a specific frame structure.

maybe Im misunderstanding because I am missing some plug in to open the files but this seems like a valid solution from what I read. Maybe not. Requires weaverbird.

Attachments:

whats the plug in ptcomponent?

It's paneling tools...some really nice stuff in there

ah yea. "pt" makes sense :)

RSS

About

Translate

Search

Videos

  • Add Videos
  • View All

© 2024   Created by Scott Davidson.   Powered by

Badges  |  Report an Issue  |  Terms of Service