Skip to main content

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:

  1. Reads the VTK file using the appropriate VTK reader.
  2. Converts the VTK geometry data to polydata (surface representation) or at least extracts the surface.
  3. Translates the VTK polydata to a USD mesh.
  4. 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.

  1. Create a new Python environment for this repository:
pip install uv
  1. Create a virtual environment and install the project:
uv venv .venv
  1. Activate the environment:
# On Linux or macOS
source .venv/bin/activate
# On Windows
.venv\Scripts\activate
  1. Install the project:
uv sync
  1. 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


Download files

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

Source Distribution

ansys_tools_usdviewer-0.1.0.tar.gz (11.3 MB view details)

Uploaded Source

Built Distribution

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

ansys_tools_usdviewer-0.1.0-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

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

Hashes for ansys_tools_usdviewer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 400c06a18b629643b48106cb545e71e7b6db3936828fa0a8923de8c92d7e3846
MD5 3059065c69ad19c0555a0b66860e203e
BLAKE2b-256 78e072f4f2c28f4b9c6b9d6d7b66fbb039003ff5ab840ce60fe815d0e378259e

See more details on using hashes here.

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

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

File details

Details for the file ansys_tools_usdviewer-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ansys_tools_usdviewer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 686a04baf71a2e56316bb3462e46f5832ce1b381cfc3455d43e25e2e49c557b8
MD5 e21fe13fcaf91c3ca078e7ddb4824477
BLAKE2b-256 ee1717856c3805f0172733eddc97346d3576dd39c53beff43b5adae7676a796d

See more details on using hashes here.

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

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