In a Metal
app written in Swift
I want to extract the SCNGeometry
instances from an SCNScene
instance to go on and build MDLMesh
's. I see no API call that pulls out the geometry (similarly for cameras, and lights). How do I do this?
Asked
Active
Viewed 235 times
1 Answers
1
Iterate over the scene's root node's child nodes. For each node, extract its geometry
or camera
property (it could have both). See SCNNode
documentation.

Hal Mueller
- 7,019
- 2
- 24
- 42
-
Thanks Hal. I tried traversing the MDLAsset and that was painful. I think thie SCNScene route will work better for me. Cheers, – dugla Nov 05 '16 at 22:18