It feels like we're really close! There seems to be a bit of confusion in what the .normals property of an ARGeometryElement represents. The documentation says they are the "Rays that define which direction is outside for each face" but for any ARGeometryElement, the .normals.count is equal to .vertices.count and NOT .faces.count. (To be fair, the comment in ARKit.ARMeshGeometry for normals says "Normal of each vertex in the mesh.")
What I'm interested in of course is the normal to any given face. Is there an easy way to get the normal vector of a face, as defined by an ARGeometryElement?
We have access to the (three) vertices defining each face, so I guess it's just a bit vector math?
Topic:
Spatial Computing
SubTopic:
ARKit
Tags: