How standardcyborg/standardcyborgcocoa works
This repository is an iOS TrueDepth 3D-scanning SDK, with a C++ geometry/reconstruction core, reusable scanning and preview UI, and demo/iteration apps. The main user flow is to start a scan, capture depth and color, reconstruct a point cloud, preview or mesh it, then save or share the result. The README documents these broad capabilities; sampled excerpts show portions of the scan and preview flow. Several implementation files are not in the supplied tree, so those subsystems use supported enclosing-directory paths and uncertain links are omitted.
Main entry points: ScanningViewController.swift Scan controller · StandardCyborgFusion Live reconstruction · ViewController.swift Example app · ScenePreviewViewController.swift Scene preview
Components 19
Capture and scanning
- Scan controller
StandardCyborgUI/StandardCyborgUI/Sources/ScanningViewController.swift - Camera manager
StandardCyborgUI/StandardCyborgUI/Sources/CameraManager.swift - Live scan renderer
StandardCyborgUI/StandardCyborgUI/Sources/DefaultScanningViewRenderer.swift - Scan feedback
StandardCyborgUI/StandardCyborgUI/Sources/ScanningHapticFeedbackEngine.swift
Reconstruction and geometry
- Live reconstruction
StandardCyborgFusion/Sources/StandardCyborgFusion - Offline reconstruction
StandardCyborgFusion/Sources/include/StandardCyborgFusion/SCOfflineReconstructionManager.h - Reconstruction API
StandardCyborgFusion/Sources/include/StandardCyborgFusion/SCReconstructionManager.h - Meshing and texturing
StandardCyborgFusion/Sources/StandardCyborgFusion/Algorithm/MeshUvMap.cpp - 3D geometry
scsdk/Sources/standard_cyborg/src/sc3d/Geometry.cpp - Scene graph
scsdk/Sources/standard_cyborg/src/scene_graph/SceneGraph.cpp - Poisson reconstruction
CppDependencies/PoissonRecon/Sources/include/PoissonRecon/FEMTree.h
Preview and export
- Scene preview
StandardCyborgUI/StandardCyborgUI/Sources/ScenePreviewViewController.swift - Mesh preview helper
StandardCyborgUI/StandardCyborgUI/Sources/SCMeshingHelper.swift - glTF handling
CppDependencies/tinygltf/include/tiny_gltf.h
Apps and iteration
- Example app
StandardCyborgExample/StandardCyborgExample/ViewController.swift - TrueDepth iteration app
TrueDepthFusion/ScanningViewController.swift - Scan preview and sharing
TrueDepthFusion/ScanPreviewViewController.swift
Other components
- Scanner
- TrueDepth camera
Connections 18
- Scanner → Scan controller: starts scan
- Scan controller → Camera manager: configures capture
- TrueDepth camera → Camera manager: supplies frames
- Scan controller → Live scan renderer: renders scan
StandardCyborgUI/StandardCyborgUI/Sources/DefaultScanningViewRenderer.swift - Scan controller → Scan feedback: signals state
StandardCyborgUI/StandardCyborgUI/Sources/ScanningViewController.swift - Scan controller → Live reconstruction: drives capture
- Live reconstruction → Reconstruction API: implements
- Offline reconstruction → Live reconstruction: reconstructs offline
- Live reconstruction → 3D geometry: produces geometry
- Meshing and texturing → 3D geometry: processes mesh
- Poisson reconstruction → Live reconstruction: supports reconstruction
- 3D geometry → Scene graph: populates scene
- Scene preview → Mesh preview helper: delegates meshing
StandardCyborgUI/StandardCyborgUI/Sources/ScenePreviewViewController.swift - Scene preview → Scene graph: displays scene
- Example app → Scan controller: starts scanning
StandardCyborgExample/StandardCyborgExample/ViewController.swift - Example app → Scene preview: presents result
StandardCyborgExample/StandardCyborgExample/ViewController.swift - Example app → glTF handling: saves scene
- TrueDepth iteration app → Scan preview and sharing: opens preview
TrueDepthFusion/ScanningViewController.swift