|
Hi I stuck at this problem (I try simplified it to the basic scenerio)
I have pointcloud and Ice tree on them, in that tree I add one point on some location, so I get position vector (vector from origin to this position I supposed) = v1
Then on another pointcloud (mesh) I have second ICE tree and I want to move all points by the distance and direction of vector v1. So I get pointPosition of mesh, add node and then set pointPosition back. In add node I add pointPosition from first Ice tree, but I have to use switch context and then I didn’t got expected result. All pointPosition from the mesh are zero.
Is this possible at all?
|
|
|
|
The problem is that you are trying to add each member of one set of values to the corresponding member in another set, but the two sets have different sizes.
What you can do instead is use one of the Math\Statistics nodes e.g. Get Set Max. This will change the context of the first cloud’s point position values from a set containing one vector (per point context) to simply one vector (singleton context). Then you can add it to the other cloud’s point positions with no problem.
|
|
|