Note: this repository contains generated scripts (created with AI assistance during an interactive Codex CLI session) and may need adjustments for your specific workflow/data.
Tools for parsing and visualizing *.sce files (Klippel 3D Scanner).
![]() |
![]() |
- Python 3.x
- Packages:
numpy,pandas,matplotlib
Install (example):
python -m pip install -r requirements.txtAll usage goes through the main.py CLI.
python main.py --sce path\to\your_measurement.sce --freq 100python main.py --sce path\to\your_measurement.sce --j 14python main.py --sce path\to\your_measurement.sce --mean-onlyThe animation is shown in 2D (displacement as a colormap on the (x,z) plane). The matplotlib window is interactive (zoom/pan in the toolbar). Additionally:
Spacepauses/resumes the animation (useful for zoom/pan)Esc/qcloses the window
If you have outliers (single points with very different values), you can enable spatial smoothing of the displacement field (neighbor-based filtering on the triangulation).
Example:
python main.py --sce path\to\your_measurement.sce --freq 1400 --smooth 0.3 --smooth-iters 5More robust smoothing for outliers:
python main.py --sce path\to\your_measurement.sce --freq 1400 --smooth 0.5 --smooth-iters 5 --smooth-method medianOr distance-weighted smoothing (more local):
python main.py --sce path\to\your_measurement.sce --freq 1400 --smooth 0.4 --smooth-iters 5 --smooth-method gaussian --smooth-sigma 4Tasks are defined in .vscode/tasks.json:
Run: animation (prompted)Run: mean amplitude (prompted)
Run them via: Terminal -> Run Task....
main.py— CLI entrypoint (recommended way to run the app).animate_membrane.py— matplotlib animation + mean amplitude plot implementation (invoked bymain.py).sce_parser.py—.sceparser utilities (geometry, frequency blocks, response blocks).

