{"id":17144011,"url":"https://github.com/korijn/vtku3dexporter","last_synced_at":"2025-07-21T06:34:27.604Z","repository":{"id":43413776,"uuid":"431534062","full_name":"Korijn/VTKU3DExporter","owner":"Korijn","description":"Export a VTK scene into U3D (Universal 3D) format","archived":false,"fork":false,"pushed_at":"2024-10-28T02:24:22.000Z","size":143,"stargazers_count":3,"open_issues_count":9,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-06-27T05:29:43.004Z","etag":null,"topics":["c-plus-plus","python","vtk","vtk-module"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Korijn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-11-24T15:23:19.000Z","updated_at":"2024-07-12T08:28:06.000Z","dependencies_parsed_at":"2023-02-14T16:25:30.534Z","dependency_job_id":"5051d8d4-91d3-4f1f-be65-a931781e10a1","html_url":"https://github.com/Korijn/VTKU3DExporter","commit_stats":null,"previous_names":["clinicalgraphics/vtku3dexporter"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Korijn/VTKU3DExporter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Korijn%2FVTKU3DExporter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Korijn%2FVTKU3DExporter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Korijn%2FVTKU3DExporter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Korijn%2FVTKU3DExporter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Korijn","download_url":"https://codeload.github.com/Korijn/VTKU3DExporter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Korijn%2FVTKU3DExporter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266253739,"owners_count":23900056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c-plus-plus","python","vtk","vtk-module"],"created_at":"2024-10-14T20:42:52.845Z","updated_at":"2025-07-21T06:34:26.938Z","avatar_url":"https://github.com/Korijn.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# vtk-u3dexporter\n\n[![Build Wheels](https://github.com/ClinicalGraphics/VTKU3DExporter/actions/workflows/build_wheels.yml/badge.svg)](https://github.com/ClinicalGraphics/VTKU3DExporter/actions/workflows/build_wheels.yml)\n[![PyPI Version](https://img.shields.io/pypi/v/vtk-u3dexporter.svg)](https://pypi.python.org/pypi/vtk-u3dexporter)\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)\n\n`vtk-u3dexporter` is a VTK module for exporting a VTK 3D scene to the U3D file format, which can be embedded into PDF files.\n\nIt is available as both C++ class and a Python package.\n\n## Installation\n\nYou can install `vtk-u3dexporter` via pip:\n\n```sh\npip install vtk-u3dexporter\n```\n\n## Usage\n\nHere is a brief example of how to use `vtk-u3dexporter` to export a simple cube scene:\n\n```python\nimport os\nimport vtk\nfrom vtk import vtkU3DExporter\n\n# Define the cube source\ncube = vtk.vtkCubeSource()\n\n# Define the cube mapper\ncubeMapper = vtk.vtkPolyDataMapper()\ncubeMapper.SetInputConnection(cube.GetOutputPort())\n\n# Define the cube actor\ncubeActor = vtk.vtkActor()\ncubeActor.SetMapper(cubeMapper)\n\n# Define the render window and renderer\nrenderWindow = vtk.vtkRenderWindow()\nrenderWindow.OffScreenRenderingOn()\nrenderer = vtk.vtkRenderer()\nrenderWindow.AddRenderer(renderer)\n\n# Add the cube to the renderer\nrenderer.AddActor(cubeActor)\n\n# Automatically reset the camera\nrenderer.ResetCamera()\n\n# Define the output file name, which will have the \".u3d\" extension appended automatically\nfilePath = \"cube\"\n\n# Export to U3D\nu3dExporter = vtkU3DExporter.vtkU3DExporter()\nu3dExporter.SetFileName(filePath)\nu3dExporter.SetInput(renderWindow)\nu3dExporter.Write()\n\n# Check that the file exists\nassert os.path.exists(f\"{filePath}.u3d\")\n```\n\nIn 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.\n\n## License\n\n`vtk-u3dexporter` is distributed under the Apache License 2.0. Please see the [LICENSE][LICENSE] file for details.\n\n[LICENSE]: https://github.com/ClinicalGraphics/VTKU3DExporter/blob/main/LICENSE\n\n## Resources\n\n* [VTK website](https://docs.vtk.org)\n* [U3D file format specification](https://www.ecma-international.org/publications-and-standards/standards/ecma-363/)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorijn%2Fvtku3dexporter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkorijn%2Fvtku3dexporter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkorijn%2Fvtku3dexporter/lists"}