Extract normal vector of face of a mesh in Isaac Sim

Isaac Sim Version

4.2.0

Operating System

Windows 10

GPU Information

  • Model: RTX 4090

Topic Description

Hello, I am working on a fix to the issue described here:

The fix is:

  • use scatter2D as usual
  • for each object scattered
    - get position on mesh surface where object is positioned
    - get vertex face where the position point is enclosed
    - find the normal of that face
    - fix rotatin and hieght of the scattered object with using the normal

The problem with the fix is: It’s heavy and hard!

the heavy/hard part of course is the calculation of the normal at a given position on the mesh (which is the surface prim).

But, i see that there is a normal annotator which means that there is a fast and correct whay to calculate the surface normal.

Please, how can I use the normal annotator to find the normal of a mesh at a specific point on the mesh?

Thank you