Questions tagged [apple-model-io]
19 questions
0
votes
1 answer
Measuring the distance between two points on a 3D-Obj file in SceneKit/modelIO and displaying them
I am completely new to IOS development and Swift. At present I am working on an IOS app that involves scanning a room using LiDAR sensor of IPad and later when I load the 3D Obj file and touch two arbitrary points, the length between two points…

Vmd
- 1
0
votes
0 answers
Can I use SKScene for material on an Obj file loaded in SceneKit?
My goal is to be able to tap on a specific model and color the surface. I have managed to do this with generic SCNSphere, SCNBox, etc.
I set it up like this, and it basically works for SCNSphere, etc:
let node = SCNNode(geometry: geometry)
let…

blueether
- 3,666
- 4
- 26
- 32
0
votes
1 answer
SceneKit: export mesh that has been imported from STL results in garbage
I am using this gist to import a binary STL 3d mesh into a SCNNode, which works fine (I can view the mesh in a SCNView and it looks good).
However, if I try to export the (unchanged) mesh using either MDLAsset.export(to: url) or SCNScene.write(to:…

Benjoyo
- 413
- 7
- 13
0
votes
2 answers
Model I/O – How to use `makeVerticesUniqueAndReturnError()` instance method?
An instance method makeVerticesUnique() modified the mesh’s vertex buffers so that no vertices were shared by multiple faces. But it was deprecated in macOS 10.13 High Sierra and in iOS 11:
mdlMesh.makeVerticesUnique() /* deprecated in…

Andy Jazz
- 49,178
- 17
- 136
- 220