Hello,
Let say I have a mesh of a mountain landscape.
I would like to calculate the direction of the slope as a vector.
I tried to loop trough the neighbours (NbP) of each point. Test if theses NbP are under or above the specified point ( compare Y position ). If the NbP are under the point the goal is to calculate the average difference between the point and the NbP as a vector.
First of all : I am not sure if the system is good or not.
i made a hip file to try the system but the result are just … unexpected !
Could you please tell if i am on the right track and what happen to my hip.
thanks for your help
Vincent
direction of a slope
4269 6 2- vbk!!!
- Member
- 383 posts
- Joined:
- Offline
- vbk!!!
- Member
- 383 posts
- Joined:
- Offline
- tamte
- Member
- 8595 posts
- Joined: July 2007
- Online
- vbk!!!
- Member
- 383 posts
- Joined:
- Offline
- vbk!!!
- Member
- 383 posts
- Joined:
- Offline
hmm …
i may have a new request.
What should the way to add some noise on this vector field. Nut the vector should stay “sticking” on the mesh.
In my mind, the new orientation of the vectors should be dependent of the normal of the mesh but i can't see how to constuct something with … let say a turbulence noise.
thank again.
i may have a new request.
What should the way to add some noise on this vector field. Nut the vector should stay “sticking” on the mesh.
In my mind, the new orientation of the vectors should be dependent of the normal of the mesh but i can't see how to constuct something with … let say a turbulence noise.
thank again.
- tamte
- Member
- 8595 posts
- Joined: July 2007
- Online
- vbk!!!
- Member
- 383 posts
- Joined:
- Offline
-
- Quick Links