vtk-u3dexporter
vtk-u3dexporter is a VTK module for exporting a VTK 3D scene to the U3D file format, which can be embedded into PDF files.
It is available as both C++ class and a Python package.
Installation
You can install vtk-u3dexporter via pip:
pip install vtk-u3dexporter
Usage
Here is a brief example of how to use vtk-u3dexporter to export a simple cube scene:
import os
import vtk
from vtk import vtkU3DExporter
# Define the cube source
cube = vtk.vtkCubeSource()
# Define the cube mapper
cubeMapper = vtk.vtkPolyDataMapper()
cubeMapper.SetInputConnection(cube.GetOutputPort())
# Define the cube actor
cubeActor = vtk.vtkActor()
cubeActor.SetMapper(cubeMapper)
# Define the render window and renderer
renderWindow = vtk.vtkRenderWindow()
renderWindow.OffScreenRenderingOn()
renderer = vtk.vtkRenderer()
renderWindow.AddRenderer(renderer)
# Add the cube to the renderer
renderer.AddActor(cubeActor)
# Automatically reset the camera
renderer.ResetCamera()
# Define the output file name, which will have the ".u3d" extension appended automatically
filePath = "cube"
# Export to U3D
u3dExporter = vtkU3DExporter.vtkU3DExporter()
u3dExporter.SetFileName(filePath)
u3dExporter.SetInput(renderWindow)
u3dExporter.Write()
# Check that the file exists
assert os.path.exists(f"{filePath}.u3d")
In this example, we create a simple cube scene using VTK, add it to a renderer, and then export it to U3D format using vtk-u3dexporter. We then verify that the output file exists.
License
vtk-u3dexporter is distributed under the Apache License 2.0. Please see the LICENSE file for details.
Resources
Metadata
Release files for vtk-u3dexporter 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
Total release size: 22.3 MB
Release files / vtk_u3dexporter-0.3.0-cp311-cp311-win_amd64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp311-cp311-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.11 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
7bda25a6b44cf1a41952aa2f051d4ff69e39ab799833c5f597abf8daea0b870a
|
|
BLAKE2b-256 checksum How to use checksums |
c21caabb4b5468b4ac0eb04afcd4c3586e0bc50c06065610c9bb298814ac134e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.11 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
c595cb5ea4757dd4e5991555b48c04a116810281929e9dddd3dd0dc505b4b2bf
|
|
BLAKE2b-256 checksum How to use checksums |
e224d54c9f4fd0f1bf787caa6e8e0b326e7420c649227b17c7321c51125660b6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp311-cp311-macosx_11_0_arm64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp311-cp311-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.11 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
d9f1ba2b38402bd3ec83f8f11a2a643b7028e159bcdb8eaf347e231318a0a650
|
|
BLAKE2b-256 checksum How to use checksums |
9636f20cfb5054dccbb4d1536cc9b1dc92bdc482e5aa128303757457c7fd51c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp311-cp311-macosx_10_10_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp311-cp311-macosx_10_10_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.11 macOS 10.10+ x86-64 |
|
SHA-256 checksum How to use checksums |
65e11a51cb06808645f0da75819db67d698ecd76e7d059258d352f5b4d044c82
|
|
BLAKE2b-256 checksum How to use checksums |
e9ee47aa5f29c62288af9e0404c686d0150ed98fe12484fb2237f785d3ac4a96
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp310-cp310-win_amd64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp310-cp310-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.10 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f93260de115c5b19d0cebe957ebe6d194c06c5a1031fc7bca5e34cff66c019f4
|
|
BLAKE2b-256 checksum How to use checksums |
b81f3387fd1e726355187752943f0e733c6cb4dc2522c0828ea890a0da1957cc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.10 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
e9fdd0b5abe0ef4447179fbca053f521b0622443690be53d045462794a69c36a
|
|
BLAKE2b-256 checksum How to use checksums |
1b31f7fc1b567d3191ecdad1d50782cc05e143db51543c5081c3013336b8be17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp310-cp310-macosx_11_0_arm64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp310-cp310-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.10 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
7033ecdb2af77da37087ae6288532cd1e274500f210ece148454707d064c838b
|
|
BLAKE2b-256 checksum How to use checksums |
02e0ace7276084f63be4e97113c6d5a1279efe765c5d5ccfe3d6ac92d94c54bc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp310-cp310-macosx_10_10_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp310-cp310-macosx_10_10_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.10 macOS 10.10+ x86-64 |
|
SHA-256 checksum How to use checksums |
8ed6a726f5db0f9e257a447dd903f25077fbc4aaca2cb4e0a915fc80cb88efb1
|
|
BLAKE2b-256 checksum How to use checksums |
0d9420ab353c18e175167beedeb68409ae419976eef0792753eab21d1aeac74c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp39-cp39-win_amd64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp39-cp39-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.9 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
ee2b2cd2f4f1c6d17948ae14890e8ecb7647d1d92ed4b91e248c9642ae2def17
|
|
BLAKE2b-256 checksum How to use checksums |
e26b79efbd7f64c9887cc73b1099f5f7313aa83ba81c2e30708da7158677ae85
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.9 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
f5ae0d01d6fb3b9d490453f60488d0f41fc07281f355743a184e904e0258fc07
|
|
BLAKE2b-256 checksum How to use checksums |
3a6003cb3607d73219b4cb99a525823c51cf132fba966efb11bca982d83c6f98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp39-cp39-macosx_11_0_arm64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp39-cp39-macosx_11_0_arm64.whl |
|---|---|
| Size | 1.3 MB |
| Tags | CPython 3.9 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
97524ae0be4898471db9298640b2b51216c73fd42e32ed6bb93d65aa8502d74d
|
|
BLAKE2b-256 checksum How to use checksums |
64f3530190382dddc06d7c5fa360294927f93b1c23f65138cd64c277accf0c68
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp39-cp39-macosx_10_10_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp39-cp39-macosx_10_10_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.9 macOS 10.10+ x86-64 |
|
SHA-256 checksum How to use checksums |
23b3d0d601b56d65bc8921ba9441f86d98c8ce4c62968184bc04310599dfa683
|
|
BLAKE2b-256 checksum How to use checksums |
3281d644372646021db999f36839016c63ee7d9356ee5d20d9279f871ecfcc6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp38-cp38-win_amd64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp38-cp38-win_amd64.whl |
|---|---|
| Size | 1.1 MB |
| Tags | CPython 3.8 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
b2210e93e8ff71b84ec57e074f00abd7ce8baee60f0e0c54a931becc94905408
|
|
BLAKE2b-256 checksum How to use checksums |
e115e8a606ec2519ed77cf9288523384eb4eb3f6196c06d2d829288be22cbda1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 |
|
SHA-256 checksum How to use checksums |
4059913364a07f5c3bbdea3e060a97b082ac8b86f383fcc75fb3925683f0dada
|
|
BLAKE2b-256 checksum How to use checksums |
fdaf8c5fa1be388fe8f7b1e36553bf18dca2d77aefbcd270149a35f54ab89e31
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Release files / vtk_u3dexporter-0.3.0-cp38-cp38-macosx_10_10_x86_64.whl
| Download URL | vtk_u3dexporter-0.3.0-cp38-cp38-macosx_10_10_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.8 macOS 10.10+ x86-64 |
|
SHA-256 checksum How to use checksums |
6912ae81df73afcbf0ab62ecaf709ce457b00e442c055b5ea7745d34e9797c7f
|
|
BLAKE2b-256 checksum How to use checksums |
cb31292015719b1fe6dd33360d72a5ca64424c2e316a7a12a2a9c6c319a30eee
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/4.0.2 CPython/3.11.5
|
Security for vtk-u3dexporter 0.3.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.