honeybee-core 1.62.0__tar.gz → 1.62.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {honeybee_core-1.62.0/honeybee_core.egg-info → honeybee_core-1.62.1}/PKG-INFO +1 -1
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/model.py +33 -1
- {honeybee_core-1.62.0 → honeybee_core-1.62.1/honeybee_core.egg-info}/PKG-INFO +1 -1
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/.github/workflows/ci.yaml +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/.github/workflows/dependency-release.yaml +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/.gitignore +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/.releaserc.json +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/CODE_OF_CONDUCT.md +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/CONTRIBUTING.md +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/LICENSE +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/MANIFEST.in +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/README.md +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/deploy.sh +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/dev-requirements.txt +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/_build/.nojekyll +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/_build/README.md +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/_build/docs/README.md +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/_static/custom.css +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/_templates/layout.html +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/cli/index.rst +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/conf.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/docs/index.rst +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/__init__.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/__main__.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/_base.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/_basewithshade.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/_lockable.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/altnumber.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/aperture.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/boundarycondition.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/checkdup.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/cli/__init__.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/cli/compare.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/cli/create.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/cli/edit.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/cli/lib.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/cli/setconfig.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/cli/validate.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/colorobj.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/config.json +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/config.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/dictutil.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/door.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/extensionutil.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/face.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/facetype.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/logutil.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/orientation.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/properties.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/room.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/search.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/shade.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/shademesh.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/typing.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/units.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/__init__.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/aperture.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/door.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/face.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/model.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/room.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/shade.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee/writer/shademesh.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee_core.egg-info/SOURCES.txt +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee_core.egg-info/dependency_links.txt +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee_core.egg-info/entry_points.txt +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee_core.egg-info/requires.txt +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/honeybee_core.egg-info/top_level.txt +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/requirements.txt +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/setup.cfg +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/setup.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/__init__.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/aperture_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/boundary_condition_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/cli_compare_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/cli_create_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/cli_edit_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/cli_validate_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/colorobj_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/config_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/dictutil_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/door_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/face_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/facetype_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/ShoeBox.json +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/bad_geometry_model.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/colliding_room_volumes.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/compare_model_1.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/compare_model_2.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/complex_polyfaces.json +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/minor_geometry/existing_model.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/minor_geometry/updated_model.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/mismatched_area_adj.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/model_with_adiabatic.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/model_with_holes.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/model_without_adjacency.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/nonascii_face.json +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/polygons_for_gap_boundary.json +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/room_for_window_offset.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/single_family_home.hbjson +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/lockable_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/model_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/orientation_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/room_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/search_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/shade_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/shademesh_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/stl/cube_ascii.stl +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/stl/cube_binary.stl +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/typing_test.py +0 -0
- {honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/units_test.py +0 -0
|
@@ -13,7 +13,7 @@ try: # check if we are in IronPython
|
|
|
13
13
|
except ImportError: # wea are in cPython
|
|
14
14
|
import pickle
|
|
15
15
|
|
|
16
|
-
from ladybug_geometry.geometry3d import Plane, Face3D, Mesh3D
|
|
16
|
+
from ladybug_geometry.geometry3d import Vector3D, Point3D, Plane, Face3D, Mesh3D
|
|
17
17
|
from ladybug_geometry.interop.stl import STL
|
|
18
18
|
|
|
19
19
|
from ._base import _Base
|
|
@@ -2001,6 +2001,38 @@ class Model(_Base):
|
|
|
2001
2001
|
self.tolerance = self.tolerance * scale_fac
|
|
2002
2002
|
self.units = units
|
|
2003
2003
|
|
|
2004
|
+
def reset_coordinate_system(self, new_origin=None):
|
|
2005
|
+
"""Set the origin of the coordinate system in which the model exists.
|
|
2006
|
+
|
|
2007
|
+
This is useful for resolving cases where the model geometry lies so
|
|
2008
|
+
far from the origin in its current coordinate system that it creates
|
|
2009
|
+
problems. For example, the model geometry might be so high above the
|
|
2010
|
+
origin that EnergyPlus models it in the conditions of the stratosphere.
|
|
2011
|
+
Another possibility is that the float values of the coordinates are so
|
|
2012
|
+
high that floating point tolerance interferes with the proper
|
|
2013
|
+
representation of the model's details.
|
|
2014
|
+
|
|
2015
|
+
In addition to moving the model such that the new_origin sets the
|
|
2016
|
+
coordinate values of the geometry, this method will also set the
|
|
2017
|
+
reference_vector of this object such that any models added into this
|
|
2018
|
+
one from the original source coordinate system respect the new system.
|
|
2019
|
+
|
|
2020
|
+
Args:
|
|
2021
|
+
new_origin: A Point3D in the model's current coordinate system that
|
|
2022
|
+
will become the origin of the new coordinate system. If unspecified,
|
|
2023
|
+
the minimum of the bounding box around the model geometry will
|
|
2024
|
+
be used and the average_height_above_ground will be used to
|
|
2025
|
+
set the Z coordinate. (Default: None).
|
|
2026
|
+
"""
|
|
2027
|
+
# compute the new_origin from the bounding box around the geometry
|
|
2028
|
+
if new_origin is None:
|
|
2029
|
+
min_2d = self.min
|
|
2030
|
+
z_val = self.average_height - self.average_height_above_ground
|
|
2031
|
+
new_origin = Point3D(min_2d.x, min_2d.y, z_val)
|
|
2032
|
+
# move the geometry using a vector that is the inverse of the origin
|
|
2033
|
+
ref_vec = Vector3D(-new_origin.x, -new_origin.y, -new_origin.z)
|
|
2034
|
+
self.move(ref_vec)
|
|
2035
|
+
|
|
2004
2036
|
def rooms_to_orphaned(self):
|
|
2005
2037
|
"""Convert all Rooms in this Model to orphaned geometry objects.
|
|
2006
2038
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/minor_geometry/existing_model.hbjson
RENAMED
|
File without changes
|
{honeybee_core-1.62.0 → honeybee_core-1.62.1}/tests/json/minor_geometry/updated_model.hbjson
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|