Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

picsl_vtk_affine_demo-0.0.1.tar.gz (330.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

picsl_vtk_affine_demo-0.0.1-py3-none-any.whl (327.7 kB view details)

Uploaded Python 3

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

Hashes for picsl_vtk_affine_demo-0.0.1.tar.gz
Algorithm Hash digest
SHA256 90b3a972d2e33430f633eaff5fb69e3d316ce7cddd33c2492e643131327fd6d5
MD5 775aca9f04c3242b840061bb5edb304d
BLAKE2b-256 4218cd0494d28ba2e24bae9f53e062901c238b46ca8c3482daecf3bad83828a7

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file picsl_vtk_affine_demo-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for picsl_vtk_affine_demo-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 2234a063cf95d840a1db8c949030b683e4ff16999f3386fb1549665a7c75e664
MD5 557e2ff7ac1b96ce589d3bd365881cd0
BLAKE2b-256 e4cebb085ca3f178e1f4f2f8be78a376e2b18636f5168e5e59eb9051932881f2

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page