Forum Migration Notice
Update (2026-01-21): The user forums are now in read-only mode pending the data migration.

Update (2026-01-12): The user forums will be put into read-only mode on the 21st of January, 00:00 CET, to prepare for the data migration.

We're transitioning to a more modern community platform by beginning of next year. Learn about the upcoming changes and what to expect.

How to obtain the mesh of a face of an object?

I am trying to develop a surface path planning AddIn of a face. I found that MeshFace contains all (presumably) all the data I need such as vertices, normals and so on for complex surfaces. I have already the face selection working. Is there a possible way to cast it to MeshFace or getting the face by indexing?  

I've tried directly casting it or finding it by face id (i do not know if that will even work)