Search - User list
Full Version: change attribute which is behind the back
Root » Technical Discussion » change attribute which is behind the back
luoqiulin
i need the grid's point feed back different value,when it's front or back from the line by vop!

for example, the line's normal is forward, and if the grid's points is ahead from the line,the grid point's normal is forward too, and if the points is at the back of the line, the point's normal is reversed!

the picture shows my mean, wish you tell me how can i do it in vop!
circusmonkey
How about create 2 lines one for each direction , then create your vector attributes and use attribute transfer onto a point group .

Rob
tamte
lets assume that you are taking that green vector as a direction from nearest point on the line
then you should be able to have access to that point's normal (yellow vector) from any of the green points as well

so just calculate dot product between green and it's corresponding yellow vector and if it is less than 0 just reverse green vector
peliosis
I hope this is what you looked for.
Poindcloud functions are the way to go.
luoqiulin
my first pic is used attributetransfer,
peliosis your hipfile is very helpful for me,but can it feed back two different value like 0–1, to indicate weather it's at the front or back,

so i tried tamte's suggestion , but the result is not accuracy! just like this
graham
You need to dot the normal from the curve with a vector representing the direction from your point on the grid to the closest point on the curve.
luoqiulin
thank you very much
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB