Honeybee extension for translating HBJSON to VTK
Project description
honeybee-vtk
🐝 VTK - Honeybee extension for viewing HBJSON in a web browser.
Installation
pip install honeybee-vtk
QuickStart
import honeybee_vtk
Usage
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 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.
honeybee-vtk translate "path to hbjson file" --include-grids --include-sensors="vectors" --show
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.
honeybee-vtk translate "path to hbjson file" --include-grids --include-sensors="points" --include-normals="points" --show
Saving the files in VTK format and then viewing in Paraview Glance. 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.
honeybee-vtk translate "path to hbjson file" --folder="path to the target folder" --file-type="vtk"
API Documentation
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for honeybee_vtk-0.7.3-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf8dfa5f3792d4916a1f9c95cc27ab793c7cf8b4cc2037a8b48a36a83d3ac481 |
|
MD5 | a5828db6e7a11931b9db391ebc1403f4 |
|
BLAKE2b-256 | 34a1acdae53ee47f706cde3103a6967f90727dd6e36d5a1e795b05861d241d31 |