tyFlow Forum
Script operator GetClosestNormal() - Printable Version

+- tyFlow Forum (https://forum.tyflow.com)
+-- Forum: tyFlow Discussion (https://forum.tyflow.com/forum-1.html)
+--- Forum: General Discussion (https://forum.tyflow.com/forum-2.html)
+--- Thread: Script operator GetClosestNormal() (/thread-1144.html)



Script operator GetClosestNormal() - clasyc - 09-24-2019

There is a part of the script:
Code:
tfObj o = objects[0];
Point3 p = tf.GetPos(sInx);

Point3 n = o.GetClosestNormal(p);
tfFace face = o.GetClosestFace(p);

why face.normal != n? I thought tfObj.GetClosestNormal finds closest face in that mesh and returns normal of it? If not, can someone explain what normal it does return?


RE: Script operator GetClosestNormal() - tyFlow - 09-24-2019

It returns interpolated vertex normals.


RE: Script operator GetClosestNormal() - clasyc - 09-24-2019

Thanks!