topologicpy 0.6.3__py3-none-any.whl → 0.7.0__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/Aperture.py +12 -13
- topologicpy/Cell.py +234 -210
- topologicpy/CellComplex.py +130 -118
- topologicpy/Cluster.py +108 -91
- topologicpy/Context.py +11 -7
- topologicpy/DGL.py +1 -1
- topologicpy/Dictionary.py +55 -65
- topologicpy/Edge.py +185 -148
- topologicpy/EnergyModel.py +23 -24
- topologicpy/Face.py +512 -313
- topologicpy/Graph.py +437 -349
- topologicpy/Grid.py +40 -43
- topologicpy/Honeybee.py +1 -1
- topologicpy/Matrix.py +28 -27
- topologicpy/Neo4j.py +5 -5
- topologicpy/Plotly.py +135 -51
- topologicpy/Shell.py +160 -145
- topologicpy/Sun.py +17 -13
- topologicpy/Topology.py +533 -765
- topologicpy/Vector.py +4 -3
- topologicpy/Vertex.py +145 -126
- topologicpy/Wire.py +542 -325
- topologicpy/version.py +1 -1
- {topologicpy-0.6.3.dist-info → topologicpy-0.7.0.dist-info}/METADATA +1 -1
- topologicpy-0.7.0.dist-info/RECORD +33 -0
- topologicpy-0.6.3.dist-info/RECORD +0 -33
- {topologicpy-0.6.3.dist-info → topologicpy-0.7.0.dist-info}/LICENSE +0 -0
- {topologicpy-0.6.3.dist-info → topologicpy-0.7.0.dist-info}/WHEEL +0 -0
- {topologicpy-0.6.3.dist-info → topologicpy-0.7.0.dist-info}/top_level.txt +0 -0
topologicpy/Vector.py
CHANGED
@@ -188,7 +188,7 @@ class Vector(list):
|
|
188
188
|
# Compute bisecting vector
|
189
189
|
bisecting_vector = (vector1_norm + vector2_norm) / np.linalg.norm(vector1_norm + vector2_norm)
|
190
190
|
|
191
|
-
return bisecting_vector
|
191
|
+
return list(bisecting_vector)
|
192
192
|
|
193
193
|
@staticmethod
|
194
194
|
def ByAzimuthAltitude(azimuth, altitude, north=0, reverse=False, tolerance=0.0001):
|
@@ -267,12 +267,13 @@ class Vector(list):
|
|
267
267
|
"""
|
268
268
|
|
269
269
|
from topologicpy.Vertex import Vertex
|
270
|
-
|
270
|
+
from topologicpy.Topology import Topology
|
271
|
+
|
271
272
|
if not isinstance(vertices, list):
|
272
273
|
return None
|
273
274
|
if not isinstance(normalize, bool):
|
274
275
|
return None
|
275
|
-
vertices = [v for v in vertices if
|
276
|
+
vertices = [v for v in vertices if Topology.IsInstance(v, "Vertex")]
|
276
277
|
if len(vertices) < 2:
|
277
278
|
return None
|
278
279
|
v1 = vertices[0]
|