/StructureKit

A collection of helper tools for Structure SDK

Primary LanguageSwiftBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

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;
  }
}