Metadata-Version: 2.4
Name: comfy-3d-viewers
Version: 0.2.37
Summary: Reusable 3D viewer infrastructure for ComfyUI nodes
Project-URL: Homepage, https://github.com/PozzettiAndrea/comfy-3d-viewers
Project-URL: Repository, https://github.com/PozzettiAndrea/comfy-3d-viewers
Author: ComfyUI-GeometryPack Contributors
License-Expression: GPL-3.0-or-later
Keywords: 3d,comfyui,gaussian-splatting,mesh-visualization,viewer,vtk
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Multimedia :: Graphics :: 3D Modeling
Classifier: Topic :: Scientific/Engineering :: Visualization
Requires-Python: >=3.10
Description-Content-Type: text/markdown

# comfy-3d-viewers

Reusable 3D viewer infrastructure for ComfyUI nodes.

Provides VTK.js and Gaussian splatting viewers, shared utilities, and HTML templates for 3D mesh visualization in ComfyUI.

## Installation

```bash
pip install -e .
```

## Usage

This package is used by ComfyUI-GeometryPack. The `prestartup_script.py` copies the viewer files to the extension's web directory at runtime.

```python
from comfy_3d_viewers import get_js_dir, get_html_dir, get_utils_dir

# Get paths to viewer files
js_dir = get_js_dir()      # JS bundles and viewer source
html_dir = get_html_dir()  # HTML viewer templates
utils_dir = get_utils_dir() # Shared JS utilities
```

## Contents

- **JS Bundles**: VTK.js, Gaussian splatting, modular viewer bundle
- **Viewer Modules**: Modular viewer architecture (core, loaders, viewers, ui, features, utils)
- **Shared Utilities**: Extension folder detection, screenshot handling, UI components, formatting, analysis panels, postMessage helpers
- **HTML Templates**: Viewer pages for VTK, textured, dual, gaussian, UV, etc.

## Building

To rebuild the VTK.js bundle:

```bash
cd build_vtk_bundle
npm install
npm run build
```

## License

GPL-3.0-or-later
