c# Script - GetClosestNormal - Printable Version +- tyFlow Forum (https://forum.tyflow.com) +-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html) +--- Forum: Bugs and Issues (https://forum.tyflow.com/forum-3.html) +--- Thread: c# Script - GetClosestNormal (/thread-3978.html) |
c# Script - GetClosestNormal - nayan - 11-14-2023 Hey there, I am getting [0,0,0] if I evaluate this script, by pressing evaluate from file - evaluate - very important part obj001 = simple Geosphere for (int i = 0; i < eventParticleCount; i++) //this for-loop iterates through all particles in this event { int sInx = tf.GetSimIndex(i); //for each event particle, we fetch its simulation index Point3 pPos = tf.GetPos(sInx); Point3 oPos = obj001.GetClosestNormal(pPos); Print(oPos); } if I apply any modifier over geosphere - immediately print command will show right Point3 values, but again if I press File - evaluate, I will get [0,0,0] and it will stay that way Can you look into this issue.... Thank you Nayan Bodawala |