Affine Transformations Teaching Tool
Interactive VTK app (via Trame) to explore affine transformations on a mesh. Used as a teaching aid when teaching about different ways to represent rotations in 3D and how to decompose affine transformations via polar decomposition.
What it does
- Visualizes a VTK mesh with cube axes and camera controls
- Applies affine transforms:
- Rotation: Euler angles, Quaternions, Axis–Angle
- Translation, Scaling, Shear (via Euler-like angles)
- Shows live 3x3 rotation and 4x4 affine matrices
- Mesh controls: representation, color-by array, LUT presets, opacity
- Reset buttons for each transform and global reset
Requirements
- Python 3.9+
- numpy, scipy, vtk
- trame, trame-vuetify, trame-vtk, trame-components
Install:
python3 -m pip install picsl_vtk_affine_demo
Run
python3 -m picsl_vtk_affine_demo
Open the URL printed in the terminal (e.g., http://localhost:8080).
Usage
- Use the drawer to pick a transform card (Rotation, Quaternions, Axis–Angle, Translation, Scaling, Shear).
- Sliders and numeric inputs are synchronized; edits update the view and matrices.
- Use “Reset” buttons to restore defaults.
Metadata
Release files for picsl-vtk-affine-demo 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| picsl_vtk_affine_demo-0.0.1.tar.gz | 330.0 kB | With provenance | Details for picsl_vtk_affine_demo-0.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picsl_vtk_affine_demo-0.0.1-py3-none-any.whl | Python 3 | none | any | Details for picsl_vtk_affine_demo-0.0.1-py3-none-any.whl |
Total release size: 657.7 kB
Release files / picsl_vtk_affine_demo-0.0.1.tar.gz
| Download URL | picsl_vtk_affine_demo-0.0.1.tar.gz |
|---|---|
| Size | 330.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
90b3a972d2e33430f633eaff5fb69e3d316ce7cddd33c2492e643131327fd6d5
|
|
BLAKE2b-256 checksum How to use checksums |
4218cd0494d28ba2e24bae9f53e062901c238b46ca8c3482daecf3bad83828a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2025.
Transparency logRelease files / picsl_vtk_affine_demo-0.0.1-py3-none-any.whl
| Download URL | picsl_vtk_affine_demo-0.0.1-py3-none-any.whl |
|---|---|
| Size | 327.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2234a063cf95d840a1db8c949030b683e4ff16999f3386fb1549665a7c75e664
|
|
BLAKE2b-256 checksum How to use checksums |
e4cebb085ca3f178e1f4f2f8be78a376e2b18636f5168e5e59eb9051932881f2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2025.
Transparency logSecurity for picsl-vtk-affine-demo 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for picsl_vtk_affine_demo-0.0.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2025.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.