{"id":20400004,"url":"https://github.com/kitware/vtp-web-viewer","last_synced_at":"2025-03-05T01:27:18.512Z","repository":{"id":96073596,"uuid":"447732643","full_name":"Kitware/vtp-web-viewer","owner":"Kitware","description":"A simple, standalone VTP viewer for the TeleSculptor Multiplex project","archived":false,"fork":false,"pushed_at":"2022-01-20T18:00:07.000Z","size":10234,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-01-15T11:46:25.363Z","etag":null,"topics":["3d","visualization","vtkjs","web"],"latest_commit_sha":null,"homepage":"https://kitware.github.io/vtp-web-viewer/","language":"JavaScript","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/Kitware.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}},"created_at":"2022-01-13T19:50:44.000Z","updated_at":"2024-11-21T03:39:53.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddfe3199-927e-49b2-a734-0ca0310766db","html_url":"https://github.com/Kitware/vtp-web-viewer","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kitware%2Fvtp-web-viewer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kitware%2Fvtp-web-viewer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kitware%2Fvtp-web-viewer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kitware%2Fvtp-web-viewer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kitware","download_url":"https://codeload.github.com/Kitware/vtp-web-viewer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241947699,"owners_count":20047251,"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":["3d","visualization","vtkjs","web"],"created_at":"2024-11-15T04:36:00.406Z","updated_at":"2025-03-05T01:27:18.487Z","avatar_url":"https://github.com/Kitware.png","language":"JavaScript","readme":"# vtk.js Standalone VTP Viewer\n\nThis is for embedding a VTP file into a standalone HTML web app for 3D viewing\nwith vtk.js\n\n## Usage\n\nPlease head over to the [releases page](https://kwgitlab.kitware.com/bane.sullivan/vtp-web-viewer/-/releases)\nand download the pre-built HTML file from the latest release notes with the\nPython script for \"injecting\" a VTP mesh file into the viewer.\n\nOnce you have both files downloaded, point the Python script to both your VTP\nmesh file and the prebuilt HTML file:\n\n```\npython inject_data.py \u003cpath_to_mesh\u003e.vtp index.html\n```\n\nThis will ouptut a new HTML file next to the mesh file where you can view that\nmesh and share the HTML file for anyone to view it (with/without an internet\nconnection and without sharing the original mesh file).\n\n## Local Development\n\nInstall the app:\n\n```\nnpm install\n```\n\nBuild the static HTML app:\n\n```\nnpm run-script build\n```\n\nInject your `.vtp` mesh file into the app:\n\n```\npython inject_data.py \u003cpath_to_mesh\u003e.vtp dist/index.html\n```\n\nAnd then you can share the produced `.html` file with the same basename as the\nmesh for 3D viewing anywhere!\n\n## Notes\n\nFor building source in the HTML file, see https://github.com/DustinJackson/html-webpack-inline-source-plugin/issues/79\n\n\n## Supported VTP File Types\n\nThe given mesh file should have a point data array named `'RGB'`.\n\n|| Appended | Ascii | Binary |\n|------|----|----|----|\n| None | ✅ | ✅ | ✅ |\n| LZ4  | ❌ | ❌ | ❌ |\n| ZLib | ✅ | ✅ | ✅ |\n| LZMA | ❌ | ❌ | ❌ |\n\nOf the supported formats, `Appended-ZLib` has the mallest file size. For one specific mesh, here is a comparison. This should scale:\n\n\n|| Appended | Ascii | Binary |\n|------|----|----|----|\n| None | 27 Mb | 48 Mb | 35 Mb |\n| ZLib | 8.7 Mb | 48 Mb | 11 Mb |\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitware%2Fvtp-web-viewer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkitware%2Fvtp-web-viewer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkitware%2Fvtp-web-viewer/lists"}