# honeybee-vtk
���� VTK - Honeybee extension for viewing HBJSON in a web browser.
![HBJSON exported to web](/images/room.gif)
[![Build Status](https://github.com/ladybug-tools/honeybee-vtk/workflows/CI/badge.svg)](https://github.com/ladybug-tools/honeybee-vtk/actions)
[![Coverage Status](https://coveralls.io/repos/github/ladybug-tools/honeybee-vtk/badge.svg)](https://coveralls.io/github/ladybug-tools/honeybee-vtk)
[![Python 3.7](https://img.shields.io/badge/python-3.7-green.svg)](https://www.python.org/downloads/release/python-370/)
## Installation
```console
pip install honeybee-vtk
```
## QuickStart
```python
import honeybee_vtk
```
## Usage
```console
Usage: honeybee-vtk translate [OPTIONS] HBJSON_FILE
Translate a HBJSON file to several VTK, XML, or HTML file.
The output file is either a zipped file that contains all the generated
VTK/XML files or an HTML file.
Args:
hbjson-file: Path to input HBJSON file.
Options:
-n, --name TEXT Name of the output file. If not provided,
the name of input HBJSON file will be used.
-f, --folder DIRECTORY Path to target folder. [default: .]
-t, --file-type [vtk|xml|html] Switch between VTK, XML, and HTML formats.
Default is HTML. [default: html]
-ig, --include-grids Export grids. [default: False]
-is, --include-sensors [vectors|points]
Export sensors as either arrows or color-
grouped points.
-in, --include-normals [vectors|points]
Export aperture normals as either arrows or
color-grouped points.
-sh, --show-html, --show Open the generated HTML file in a browser.
[default: False]
--help Show this message and exit.
```
Viewing an [HBJSON](tests/assets/gridbased.hbjson) generated from a model that ships with Ladybug Tools. You can send this HTML to someone and they will be able to open the see the same model.
```console
honeybee-vtk translate "path to hbjson file" --include-grids --include-sensors="vectors" --show
```
![](/images/honeybee-vtk-vectors.gif)
Exporting points colored based on the direction of the normals for apertures and grid sensors. This is useful for models with very high number of sensors or apertures.
```console
honeybee-vtk translate "path to hbjson file" --include-grids --include-sensors="points" --include-normals="points" --show
```
![](/images/honeybee-vtk-points.gif)
Saving the files in VTK format and then viewing in [Paraview Glance](https://kitware.github.io/paraview-glance/app/). This is useful if you prefer smaller file sizes. Use "xml" in file-type to export XML files. If you wish to share a model that you have formatted in Paraview Glance, click on "Save State" button in the navbar of Paraview Glance. This will download a .glance file that you can share with others and they will be able to load this file back in Paraview Glance and see the model the way you formatted it.
```console
honeybee-vtk translate "path to hbjson file" --folder="path to the target folder" --file-type="vtk"
```
![](/images/honeybee-vtk-vtk.gif)
## [API Documentation](https://www.ladybug.tools/honeybee-vtk/docs/)
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
资源分类:Python库 所属语言:Python 资源全名:honeybee-vtk-0.7.15.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
honeybee-vtk-0.7.15.tar.gz (52个子文件)
honeybee-vtk-0.7.15
MANIFEST.in 32B
PKG-INFO 4KB
.releaserc.json 294B
.coveragerc 20B
images
honeybee-vtk-points.gif 8.64MB
honeybee-vtk-vectors.gif 6.95MB
room.gif 59KB
honeybee-vtk-vtk.gif 13.37MB
docs
conf.py 7KB
_templates
layout.html 4KB
modules.rst 78B
cli.rst 151B
_build
.nojekyll 1B
docs
README.md 16B
README.md 16B
README.md 468B
index.rst 628B
_static
custom.css 899B
honeybee_vtk.egg-info
PKG-INFO 4KB
requires.txt 47B
SOURCES.txt 1KB
entry_points.txt 56B
top_level.txt 13B
dependency_links.txt 1B
.github
workflows
ci.yaml 3KB
tests
assets
unnamed.hbjson 340KB
temp
place_holder.txt 0B
gridbased.hbjson 83KB
__init__.py 0B
write_test.py 1KB
LICENSE 34KB
dev-requirements.txt 274B
CONTRIBUTING.md 445B
deploy.sh 165B
setup.cfg 102B
requirements.txt 47B
honeybee_vtk
helper.py 4KB
cli.py 2KB
writers.py 13KB
assets
ParaViewGlance.html 4.91MB
hbjson.py 9KB
to_vtk.py 7KB
__init__.py 43B
index.py 3KB
writer.py 4KB
vtkjs_helper.py 8KB
file_writers.py 11KB
setup.py 1KB
.gitignore 210B
CODE_OF_CONDUCT.md 279B
.dependabot
config.yml 305B
README.md 3KB
共 52 条
- 1
资源评论
- weixin_466195872023-02-20资源不错,很实用,内容全面,介绍详细,很好用,谢谢分享。
挣扎的蓝藻
- 粉丝: 14w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功