Skip to content

structureio/StructureKit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

StructureKit

A collection of helper tools for Structure SDK

Installation

You can consume it as a Swift Package: Adding package dependencies to your app

Usage

Import into your Swift source code:

import StructureKit

Integration with Structure SDK

StructureKit based on Structure SDK - compatible interfaces.

Current version is compatible with Structure SDK 2.* and 3.*.

To seamlessly use Structure SDK types together with StructureKit, add the following code in your project:

import StructureKit

extension STMesh : STKMesh {
}

extension STColorFrame : STKColorFrame {
}

extension STIntrinsics : STKIntrinsics {
}

extension STDepthFrame : STKDepthFrame {
  public func intrinsics() -> STKIntrinsics {
    let i : STIntrinsics = self.intrinsics()
    return i;
  }
}