UPenn BE5370 Affine Transformations Teaching Tool
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file picsl_vtk_affine_demo-0.0.1.tar.gz.
File metadata
- Download URL: picsl_vtk_affine_demo-0.0.1.tar.gz
- Upload date:
- Size: 330.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
90b3a972d2e33430f633eaff5fb69e3d316ce7cddd33c2492e643131327fd6d5
|
|
| MD5 |
775aca9f04c3242b840061bb5edb304d
|
|
| BLAKE2b-256 |
4218cd0494d28ba2e24bae9f53e062901c238b46ca8c3482daecf3bad83828a7
|
Provenance
The following attestation bundles were made for picsl_vtk_affine_demo-0.0.1.tar.gz:
Publisher:
python-publish.yml on pyushkevich/picsl_vtk_affine_demo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
picsl_vtk_affine_demo-0.0.1.tar.gz -
Subject digest:
90b3a972d2e33430f633eaff5fb69e3d316ce7cddd33c2492e643131327fd6d5 - Sigstore transparency entry: 655461542
- Sigstore integration time:
-
Permalink:
pyushkevich/picsl_vtk_affine_demo@8cc124a18822e5526538c602a2efb1e70136b781 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pyushkevich
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@8cc124a18822e5526538c602a2efb1e70136b781 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file picsl_vtk_affine_demo-0.0.1-py3-none-any.whl.
File metadata
- Download URL: picsl_vtk_affine_demo-0.0.1-py3-none-any.whl
- Upload date:
- Size: 327.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2234a063cf95d840a1db8c949030b683e4ff16999f3386fb1549665a7c75e664
|
|
| MD5 |
557e2ff7ac1b96ce589d3bd365881cd0
|
|
| BLAKE2b-256 |
e4cebb085ca3f178e1f4f2f8be78a376e2b18636f5168e5e59eb9051932881f2
|
Provenance
The following attestation bundles were made for picsl_vtk_affine_demo-0.0.1-py3-none-any.whl:
Publisher:
python-publish.yml on pyushkevich/picsl_vtk_affine_demo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
picsl_vtk_affine_demo-0.0.1-py3-none-any.whl -
Subject digest:
2234a063cf95d840a1db8c949030b683e4ff16999f3386fb1549665a7c75e664 - Sigstore transparency entry: 655461581
- Sigstore integration time:
-
Permalink:
pyushkevich/picsl_vtk_affine_demo@8cc124a18822e5526538c602a2efb1e70136b781 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/pyushkevich
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@8cc124a18822e5526538c602a2efb1e70136b781 -
Trigger Event:
workflow_dispatch
-
Statement type: