Skip to content

jmousseau/Landon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Landon

Encode ARKit anchor geometries to the Draco and OBJ file formats. Below is a sample ARMeshAnchor encoding.

import Landon

// Gather all the mesh anchors.
let meshAnchors = session.currentFrame?.anchors.compactMap({ anchor in
    anchor as? ARMeshAnchor
})

// Encode the mesh anchors to the Draco file format.
let result = DracoEncoder.encode(meshAnchors: meshAnchors)
assert(result.status.code == .OK, "Encoding failed!")

// Encode the mesh anchors to the OBJ file format.
let result = OBJEncoder.encode(meshAnchors: meshAnchors)
assert(result != nil, "Encoding failed!")

About

Encode ARKit anchor geometries to the Draco and OBJ file formats.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published