A USD viewer built with PySide6 and Pixar's USD library.
Project description
Python USD Viewer
Goals
The Python USD Viewer lets you visualize VTK-based 3D models (such as meshes and point clouds), even though USD and VTK are different 3D formats. This library converts between the two ecosystems.
How the conversion works
The _VTKConverter class processes VTK assets by performing these steps:
- Reads the VTK file using the appropriate VTK reader.
- Converts the VTK geometry data to polydata (surface representation) or at least extracts the surface.
- Translates the VTK polydata to a USD mesh.
- Embeds the USD mesh into a USD stage for visualization.
Installation
Prerequisites
You must have a C++ compiler. Linux typically includes one by default. On Windows, you can use Visual Studio.
- Create a new Python environment for this repository:
pip install uv
- Create a virtual environment and install the project:
uv venv .venv
- Activate the environment:
# On Linux or macOS
source .venv/bin/activate
# On Windows
.venv\Scripts\activate
- Install the project:
uv sync
- Set up OpenUSD using the OpenUSD auto-installer:
usd-setup
Or, follow the instructions in the OpenUSD repository.
Usage
Python USD Viewer uses Maya-style controls. To move the camera with the mouse, press and hold the Alt key.
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 ansys_tools_usdviewer-0.1.0.tar.gz.
File metadata
- Download URL: ansys_tools_usdviewer-0.1.0.tar.gz
- Upload date:
- Size: 11.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
400c06a18b629643b48106cb545e71e7b6db3936828fa0a8923de8c92d7e3846
|
|
| MD5 |
3059065c69ad19c0555a0b66860e203e
|
|
| BLAKE2b-256 |
78e072f4f2c28f4b9c6b9d6d7b66fbb039003ff5ab840ce60fe815d0e378259e
|
Provenance
The following attestation bundles were made for ansys_tools_usdviewer-0.1.0.tar.gz:
Publisher:
ci-release.yml on ansys/python-usd-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_tools_usdviewer-0.1.0.tar.gz -
Subject digest:
400c06a18b629643b48106cb545e71e7b6db3936828fa0a8923de8c92d7e3846 - Sigstore transparency entry: 1393309853
- Sigstore integration time:
-
Permalink:
ansys/python-usd-viewer@b393dfef0d97fd6e0903b30f870dba50142a2a46 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-release.yml@b393dfef0d97fd6e0903b30f870dba50142a2a46 -
Trigger Event:
push
-
Statement type:
File details
Details for the file ansys_tools_usdviewer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: ansys_tools_usdviewer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
686a04baf71a2e56316bb3462e46f5832ce1b381cfc3455d43e25e2e49c557b8
|
|
| MD5 |
e21fe13fcaf91c3ca078e7ddb4824477
|
|
| BLAKE2b-256 |
ee1717856c3805f0172733eddc97346d3576dd39c53beff43b5adae7676a796d
|
Provenance
The following attestation bundles were made for ansys_tools_usdviewer-0.1.0-py3-none-any.whl:
Publisher:
ci-release.yml on ansys/python-usd-viewer
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
ansys_tools_usdviewer-0.1.0-py3-none-any.whl -
Subject digest:
686a04baf71a2e56316bb3462e46f5832ce1b381cfc3455d43e25e2e49c557b8 - Sigstore transparency entry: 1393309891
- Sigstore integration time:
-
Permalink:
ansys/python-usd-viewer@b393dfef0d97fd6e0903b30f870dba50142a2a46 -
Branch / Tag:
refs/tags/v0.1.0 - Owner: https://github.com/ansys
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
ci-release.yml@b393dfef0d97fd6e0903b30f870dba50142a2a46 -
Trigger Event:
push
-
Statement type: