Grasshopper

generative modeling for Rhino

# single source 360 vector distribution

I am sure this is a simple thing to do but I can't seem figure it out.

I am trying to create a force that is directed from one point evenly in all direction.  I have tried to create a mesh sphere and get vectors by the normals but the vectors are more condensed on the top and bottom because of the u and v therefore through off the simulation.  How can I achieve even distribution? or even just from a point? Could use a particle and somehow have its forces spread in all directions?

Views: 283

### Replies to This Discussion

Try using geodesic type sphere and use center of faces to "pull out" vectors, this could solve evenly distributed forces but I'm pretty sure there could be another simplest way...with some particle system as you say

geodesic might work, thanks

Is there some way to create a force that would like a sun? giving off a force in all directions??

Hi Connor,

The simple way to do this is using a 'PowerLaw' force.

By default it has an exponent of -1, so the strength of the force will vary as the inverse of the distance.

If you do not want its strength to be dependent on the distance, just set the exponent to 0

See the attached file for an example

Attachments:

Great, thank you Daniel

I was working on GH and found "SphCloud" as a way to achieve this also

This command will give you "evenly distributed" points on a spheric surface with it's normals pointing away from sphere center.... but maybe Daniel Piker suggestion is much more accurate

just in case

Regards

Ale

Ale,

I just checked out the SphCloud component and it's "evenly distributed" points on a spherical surface. I did a check on the distribution of points and they definitely were not evenly distributed. Also, it seems that the component has disappeared in GH's new version, but I cannot find a component that does the same thing.

I'm looking to distribute points evenly on a spherical surface to generate polyhedrons. I hope I can find a solution in this thread.

Steven

Hi Daniel,

Thank you for the great work on Kangaroo.

I am trying to create a force that would work like a pLaw force but that would only act on the Z axis.  So it would move the points up and down depending on where the attractor is.  For the moment the Plaw is pushing and pulling the points sideways as well.

I also tried using the rocket component by changing the force of the push relative to distance but it strangely doesnt work if I move the attractor (the attractor is animated), which would work if I am using the PLaw component.

The same thing happens with gravity as with the rocket.

I am wondering what kind of inputs are the forces...  Could I create a vector field and use that as an input for the kangaroo solver?
I am sure there is a simple and quite obvious solution which I cant see.

Any help would be appreciated.  Thanks again for the work.

Best,

M

by stefano

by stefano

• View All