How to use ARPlaneGeometry for visualize and update plane mesh

In SceneKit, I can update SCNNode with ARSCNPlane mesh to visualize my plane but in RealityKit how can I convert ARPlaneGeometry to MeshResource and visualize and update my plane mesh.

Replies

Also curious. At one point I was trying to do so as follows:


ShapeResource.generateConvex(from: planeAnchor.geometry.vertices)

Currently doesn't seem possible. The only method really would be to create a SceneKit scene containing just this mesh, export as USDZ, then read that into RealityKit - quite heavy considering this may be updated several times per second.


ShapeResource.generateConvex as @marktwobulls mentioned caught my eye a little while ago, but was then disappointed to find that it does not create a mesh (only a shape for collisions etc), so could not be used for rendering anything.