OCCTSwiftViewport API Reference
A detailed, per-type function reference for the OCCTSwiftViewport Swift API. One page per domain, every public type and member documented: signature, behaviour, parameters, return, and a runnable example. This complements the Cookbook (task-oriented walkthroughs) — this is the exhaustive surface.
The library re-exports ~56 public types via underscore-prefixed typealiases (_CameraState, _ViewportBody, …) from the umbrella OCCTSwiftViewport.swift. Consumers import OCCTSwiftViewport and use the _TypeName form, or the bare type name. These pages document the underlying types.
Page layout
Each page groups related types by domain. Every page:
---
title: <Domain>
parent: API Reference
---
# <Domain>
<1–3 sentences: what this domain covers and the key entry points.>
## Topics
- [<Type A>](#type-a) · [<Type B>](#type-b) · …
---
## <Type> ← one ## per public type
<what it represents and how you obtain one.>
### `member(label:)` ← ### per public member
<one-line summary, signature, parameters, example.>
Pages
| Page | Types |
|---|---|
| Camera | CameraController, CameraState, PivotStrategy, DynamicPivotConfiguration, RotationStyle, StandardView |
| Viewport Body & Geometry | ViewportBody, ViewportArc, ArcSampling, BodyPrimitiveKind, primitive factories |
| Configuration | ViewportConfiguration, RenderingQuality, RenderLayer, PickingConfiguration, ClipPlane |
| Display & Lighting | DisplayMode, LightingConfiguration, LightSettings |
| Materials | PBRMaterial, MaterialLibrary, NamedMaterial, HDRLoader |
| Picking & Selection | PickResult, PrimitiveKind, PickLayer, SelectionFilter, SceneRaycast, RaycastHit, Ray, ProjectionUtility |
| Rendering | ViewportRenderer, OffscreenRenderer, OffscreenRenderOptions, OffscreenRenderError, OrthoBounds |
| ViewCube | NavigationCube, NavigationCubeView, ViewCubeView, ViewCubeRegion, ViewCubeFace, ViewCubePosition |
| Measurements | ViewportMeasurement, MeasurementMode, DistanceMeasurement, AngleMeasurement, RadiusMeasurement |
| HUD | OrientationGnomon, ScaleBarView, ScaleBarMetrics |
| Input | ViewportInputEvent, ViewportModifierKeys, GestureConfiguration, GestureAction |
| Math | BoundingBox, Frustum, Ray |
| SwiftUI Views | MetalViewportView, ViewportController |