topologicpy 0.7.54__py3-none-any.whl → 0.7.55__py3-none-any.whl
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.
- topologicpy/Cell.py +1 -6
- topologicpy/CellComplex.py +1 -6
- topologicpy/EnergyModel.py +6 -8
- topologicpy/Graph.py +120 -72
- topologicpy/Honeybee.py +2 -3
- topologicpy/Topology.py +19 -488
- topologicpy/version.py +1 -1
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.55.dist-info}/METADATA +1 -1
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.55.dist-info}/RECORD +12 -12
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.55.dist-info}/WHEEL +1 -1
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.55.dist-info}/LICENSE +0 -0
- {topologicpy-0.7.54.dist-info → topologicpy-0.7.55.dist-info}/top_level.txt +0 -0
topologicpy/Cell.py
CHANGED
@@ -969,12 +969,7 @@ class Cell():
|
|
969
969
|
return code
|
970
970
|
|
971
971
|
def getApertures(topology):
|
972
|
-
|
973
|
-
apertures = Topology.Apertures(topology)
|
974
|
-
if isinstance(apertures, list):
|
975
|
-
for aperture in apertures:
|
976
|
-
apTopologies.append(Aperture.Topology(aperture))
|
977
|
-
return apTopologies
|
972
|
+
return Topology.Apertures(topology)
|
978
973
|
|
979
974
|
if not Topology.IsInstance(cell, "Cell"):
|
980
975
|
print("Cell.Decompose - Error: The input cell parameter is not a valid topologic cell. Returning None.")
|
topologicpy/CellComplex.py
CHANGED
@@ -493,12 +493,7 @@ class CellComplex():
|
|
493
493
|
return code
|
494
494
|
|
495
495
|
def getApertures(topology):
|
496
|
-
|
497
|
-
apTopologies = []
|
498
|
-
apertures = Topology.Apertures(topology)
|
499
|
-
for aperture in apertures:
|
500
|
-
apTopologies.append(Aperture.Topology(aperture))
|
501
|
-
return apTopologies
|
496
|
+
return Topology.Apertures(topology)
|
502
497
|
|
503
498
|
if not Topology.IsInstance(cellComplex, "CellComplex"):
|
504
499
|
print("CellComplex.Decompose - Error: The input cellcomplex parameter is not a valid topologic cellcomplex. Returning None.")
|
topologicpy/EnergyModel.py
CHANGED
@@ -382,12 +382,11 @@ class EnergyModel:
|
|
382
382
|
osSurface.setName(osSpace.name().get() + "_ExternalVerticalFace_" + str(faceNumber))
|
383
383
|
# Check for exterior apertures
|
384
384
|
faceDictionary = buildingFace.GetDictionary()
|
385
|
-
apertures = []
|
386
|
-
|
385
|
+
#apertures = []
|
386
|
+
apertures = Topology.Apertures(buildingFace)
|
387
387
|
if len(apertures) > 0:
|
388
|
-
for
|
388
|
+
for apertureFace in apertures:
|
389
389
|
osSubSurfacePoints = []
|
390
|
-
apertureFace = Aperture.Topology(aperture)
|
391
390
|
for vertex in Topology.SubTopologies(apertureFace.ExternalBoundary(), "Vertex"):
|
392
391
|
osSubSurfacePoints.append(openstudio.Point3d(Vertex.X(vertex, mantissa=mantissa), Vertex.Y(vertex, mantissa=mantissa), Vertex.Z(vertex, mantissa=mantissa)))
|
393
392
|
osSubSurface = openstudio.model.SubSurface(osSubSurfacePoints, osModel)
|
@@ -420,12 +419,11 @@ class EnergyModel:
|
|
420
419
|
osSurface.setName(osSpace.name().get() + "_InternalVerticalFace_" + str(faceNumber))
|
421
420
|
# Check for interior apertures
|
422
421
|
faceDictionary = buildingFace.GetDictionary()
|
423
|
-
apertures = []
|
424
|
-
|
422
|
+
#apertures = []
|
423
|
+
apertures = Topology.Apertures(buildingFace)
|
425
424
|
if len(apertures) > 0:
|
426
|
-
for
|
425
|
+
for apertureFace in apertures:
|
427
426
|
osSubSurfacePoints = []
|
428
|
-
apertureFace = Aperture.Topology(aperture)
|
429
427
|
for vertex in Topology.SubTopologies(apertureFace.ExternalBoundary(), "Vertex"):
|
430
428
|
osSubSurfacePoints.append(openstudio.Point3d(Vertex.X(vertex, mantissa=mantissa), Vertex.Y(vertex, mantissa=mantissa), Vertex.Z(vertex.Z, mantissa=mantissa)))
|
431
429
|
osSubSurface = openstudio.model.SubSurface(osSubSurfacePoints, osModel)
|