# jibufilm/point_motion_lidar_importer architecture

> Architecture diagram of the GitHub repository jibufilm/point_motion_lidar_importer, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jibufilm/point_motion_lidar_importer
- Repository: https://github.com/jibufilm/point_motion_lidar_importer

## Overview

#### Purpose and Entry Points
Point Motion LiDAR Importer is a Blender 4.2+ extension that converts Ouster LiDAR recordings into frame-addressable point-cloud animation. Blender users access it through the N-panel’s LiDAR tab, principally via “Import PCAP + JSON” and “Load PLY Sequence.” The extension package root is `__init__.py`; Blender extension metadata and bundled dependency declarations are in `blender_manifest.toml`.

#### Input and Decode Boundary
The primary ingest contract is a matched Ouster `.pcap` and `.json` metadata pair with the same basename and directory. Ouster-specific packet decoding and sensor metadata interpretation are delegated to the bundled Ouster SDK wheel, `wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl`. This is the key vendor-format boundary: non-Ouster sensors require a separate decoder integration.

#### Conversion Pipeline
The core flow is: PCAP + JSON → Ouster SDK decode → per-frame PLY export → Blender animated point-cloud sequence. Decoding produces discrete frame files rather than retaining packet streams in Blender, creating a durable intermediate boundary that supports later sequence loading without re-decoding. Example recording material is under `Test_Logs/drive0800-1160.mp4`; generated/intermediate output locations appear as `Test_Logs/temp` and `sample output/temp`.

#### Blender Sequence Integration
The extension maps exported PLY frames into Blender’s timeline and configures playback duration to recording length. It supports multi-sensor recordings and imports point attributes including reflectivity, near-IR, and range. Blender remains responsible for scene navigation, lighting, and rendering; the add-on’s responsibility ends at scene/sequence construction. Relevant package integration points are `__init__.py` and `blender_manifest.toml`.

#### Runtime and Dependency Packaging
The intended runtime is Blender’s embedded Python 3.11 environment on macOS ARM64, evidenced by platform-specific wheels such as `wheels/numpy-2.4.2-cp311-cp311-macosx_11_0_arm64.whl` and `wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl`. Dependencies are vendored in `wheels/`, allowing installation as a self-contained Blender extension rather than relying on system Python. Supporting packages include NumPy, laspy, compression libraries, networking/discovery packages, and Ouster SDK transitive dependencies.

#### Operational Constraints
The add-on is architected around local files and Blender, with no required remote service or web application. Platform portability is constrained by native wheels and Ouster SDK availability; the repository currently packages macOS ARM64 artifacts. The GPL-licensed extension is distributed as a zipped folder installed through Blender’s Extensions UI.

Main entry points: [`__init__.py`](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/__init__.py) (Extension Package), [`wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl`](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl) (Ouster SDK), [`wheels/temp`](https://github.com/jibufilm/point_motion_lidar_importer/tree/main/wheels/temp) (Vendored Wheels), [`Test_Logs/temp`](https://github.com/jibufilm/point_motion_lidar_importer/tree/main/Test_Logs/temp) (PLY Frame Sequence)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_blender["Blender Extension"]
  node_lidar_panel["LiDAR N-Panel<br/>Blender UI<br/>[__init__.py]"]
  node_extension["Extension Package<br/>Blender add-on<br/>[__init__.py]"]
  node_sequence_loader["Sequence Loader<br/>Blender integration<br/>[__init__.py]"]
  node_blender_scene["Animated Point-Cloud Scene<br/>Blender scene"]
end

subgraph group_pipeline["Local Conversion Pipeline"]
  node_pcap_json["Matched PCAP + JSON<br/>Ouster input"]
  node_ouster_sdk{{"Ouster SDK<br/>vendor decoder"}}
  node_frame_export["Per-Frame PLY Export<br/>conversion stage"]
  node_ply_sequence["PLY Frame Sequence<br/>intermediate files"]
end

subgraph group_packaging["Runtime Packaging"]
  node_manifest["Extension Manifest<br/>metadata"]
  node_blender_runtime{{"Blender Python 3.11<br/>embedded runtime"}}
  node_numpy_wheel["NumPy Native Wheel<br/>bundled dependency"]
  node_vendor_wheels["Vendored Wheels<br/>dependency bundle"]
  node_extension_zip["Extension ZIP<br/>distribution"]
end

node_user(("Blender User<br/>actor"))

node_user -->|"uses"| node_lidar_panel
node_lidar_panel -->|"invokes"| node_extension
node_pcap_json -->|"decode input"| node_ouster_sdk
node_ouster_sdk -->|"decoded frames"| node_frame_export
node_frame_export -->|"writes PLY"| node_ply_sequence
node_extension -->|"imports decoder"| node_ouster_sdk
node_extension -->|"runs conversion"| node_frame_export
node_lidar_panel -->|"load PLY sequence"| node_sequence_loader
node_ply_sequence -->|"reads frames"| node_sequence_loader
node_sequence_loader -->|"creates animated sequence"| node_blender_scene
node_manifest -->|"declares"| node_extension
node_extension_zip -->|"packages"| node_manifest
node_blender_runtime -->|"runs"| node_extension
node_blender_runtime -->|"loads native wheel"| node_ouster_sdk
node_blender_runtime -->|"loads native wheel"| node_numpy_wheel
node_vendor_wheels -->|"bundled in"| node_extension_zip
node_ouster_sdk -.->|"included as"| node_vendor_wheels
node_numpy_wheel -.->|"included as"| node_vendor_wheels

click node_lidar_panel "https://github.com/jibufilm/point_motion_lidar_importer/blob/main/__init__.py"
click node_extension "https://github.com/jibufilm/point_motion_lidar_importer/blob/main/__init__.py"
click node_manifest "https://github.com/jibufilm/point_motion_lidar_importer/blob/main/blender_manifest.toml"
click node_ouster_sdk "https://github.com/jibufilm/point_motion_lidar_importer/blob/main/wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl"
click node_ply_sequence "https://github.com/jibufilm/point_motion_lidar_importer/tree/main/Test_Logs/temp"
click node_sequence_loader "https://github.com/jibufilm/point_motion_lidar_importer/blob/main/__init__.py"
click node_numpy_wheel "https://github.com/jibufilm/point_motion_lidar_importer/blob/main/wheels/numpy-2.4.2-cp311-cp311-macosx_11_0_arm64.whl"
click node_vendor_wheels "https://github.com/jibufilm/point_motion_lidar_importer/tree/main/wheels/temp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_lidar_panel,node_extension,node_sequence_loader,node_blender_scene toneBlue
class node_pcap_json,node_ouster_sdk,node_frame_export,node_ply_sequence toneAmber
class node_manifest,node_blender_runtime,node_numpy_wheel,node_vendor_wheels,node_extension_zip toneMint
class node_user toneNeutral
```

## Components

### Blender Extension

- [LiDAR N-Panel](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/__init__.py): Blender UI · Provides PCAP import and PLY sequence loading actions. · `__init__.py`
- [Extension Package](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/__init__.py): Blender add-on · Builds frame-addressable point-cloud scenes and timeline playback. · `__init__.py`
- [Sequence Loader](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/__init__.py): Blender integration · Maps PLY frames and attributes into timeline-addressable point clouds. · `__init__.py`
- **Animated Point-Cloud Scene**: Blender scene · Supports multi-sensor frames with reflectivity, near-IR, and range attributes.

### Local Conversion Pipeline

- **Matched PCAP + JSON**: Ouster input · Input files must share a basename and directory.
- [Ouster SDK](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl): vendor decoder · Decodes packets and interprets Ouster sensor metadata. · `wheels/ouster_sdk-0.16.1-cp311-cp311-macosx_11_0_arm64.whl`
- **Per-Frame PLY Export**: conversion stage · Converts decoded scans into durable discrete frame files.
- [PLY Frame Sequence](https://github.com/jibufilm/point_motion_lidar_importer/tree/main/Test_Logs/temp): intermediate files · Enables later loading without PCAP re-decoding. · `Test_Logs/temp`

### Runtime Packaging

- [Extension Manifest](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/blender_manifest.toml): metadata · Declares Blender extension metadata and bundled dependencies. · `blender_manifest.toml`
- **Blender Python 3.11**: embedded runtime · Target runtime is macOS ARM64 Blender 4.2+.
- [NumPy Native Wheel](https://github.com/jibufilm/point_motion_lidar_importer/blob/main/wheels/numpy-2.4.2-cp311-cp311-macosx_11_0_arm64.whl): bundled dependency · `wheels/numpy-2.4.2-cp311-cp311-macosx_11_0_arm64.whl`
- [Vendored Wheels](https://github.com/jibufilm/point_motion_lidar_importer/tree/main/wheels/temp): dependency bundle · Includes laspy, compression, networking, discovery, and SDK transitive packages. · `wheels/temp`
- **Extension ZIP**: distribution · Installed locally through Blender’s Extensions UI.

### Other components

- **Blender User**: actor

## Connections

- Blender User → LiDAR N-Panel: uses
- LiDAR N-Panel → Extension Package: invokes
- Matched PCAP + JSON → Ouster SDK: decode input
- Ouster SDK → Per-Frame PLY Export: decoded frames
- Per-Frame PLY Export → PLY Frame Sequence: writes PLY
- Extension Package → Ouster SDK: imports decoder
- Extension Package → Per-Frame PLY Export: runs conversion
- LiDAR N-Panel → Sequence Loader: load PLY sequence
- PLY Frame Sequence → Sequence Loader: reads frames
- Sequence Loader → Animated Point-Cloud Scene: creates animated sequence
- Extension Manifest → Extension Package: declares
- Extension ZIP → Extension Manifest: packages
- Blender Python 3.11 → Extension Package: runs
- Blender Python 3.11 → Ouster SDK: loads native wheel
- Blender Python 3.11 → NumPy Native Wheel: loads native wheel
- Vendored Wheels → Extension ZIP: bundled in
- Ouster SDK → Vendored Wheels: included as
- NumPy Native Wheel → Vendored Wheels: included as
