topologicpy 0.7.74__py3-none-any.whl → 0.7.75__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/Face.py +11 -10
- topologicpy/version.py +1 -1
- {topologicpy-0.7.74.dist-info → topologicpy-0.7.75.dist-info}/METADATA +1 -1
- {topologicpy-0.7.74.dist-info → topologicpy-0.7.75.dist-info}/RECORD +7 -7
- {topologicpy-0.7.74.dist-info → topologicpy-0.7.75.dist-info}/LICENSE +0 -0
- {topologicpy-0.7.74.dist-info → topologicpy-0.7.75.dist-info}/WHEEL +0 -0
- {topologicpy-0.7.74.dist-info → topologicpy-0.7.75.dist-info}/top_level.txt +0 -0
topologicpy/Face.py
CHANGED
@@ -132,7 +132,6 @@ class Face():
|
|
132
132
|
dirA = Face.Normal(faceA, outputType="xyz", mantissa=3)
|
133
133
|
dirB = Face.Normal(faceB, outputType="xyz", mantissa=3)
|
134
134
|
if dirA == None or dirB == None:
|
135
|
-
Topology.Show(faceA, faceB)
|
136
135
|
print("Face.Angle - Error: Could not compute the angle between the two input faces. Returning None.")
|
137
136
|
return None
|
138
137
|
return round((Vector.Angle(dirA, dirB)), mantissa)
|
@@ -1707,10 +1706,11 @@ class Face():
|
|
1707
1706
|
else:
|
1708
1707
|
obstacles = []
|
1709
1708
|
|
1710
|
-
origin =
|
1709
|
+
origin = Topology.Centroid(face)
|
1711
1710
|
normal = Face.Normal(face)
|
1712
1711
|
flat_face = Topology.Flatten(face, origin=origin, direction=normal)
|
1713
1712
|
flat_vertex = Topology.Flatten(vertex, origin=origin, direction=normal)
|
1713
|
+
|
1714
1714
|
eb = Face.ExternalBoundary(flat_face)
|
1715
1715
|
vertices = Topology.Vertices(eb)
|
1716
1716
|
coords = [Vertex.Coordinates(v, outputType="xy") for v in vertices]
|
@@ -1728,6 +1728,7 @@ class Face():
|
|
1728
1728
|
flat_face = Face.ByWires(eb, new_ib_list)
|
1729
1729
|
for obs in obstacles:
|
1730
1730
|
flat_face = Topology.Difference(flat_face, Face.ByWire(obs))
|
1731
|
+
|
1731
1732
|
targets = Topology.Vertices(flat_face)
|
1732
1733
|
distances = []
|
1733
1734
|
for target in targets:
|
@@ -1748,6 +1749,7 @@ class Face():
|
|
1748
1749
|
final_faces.append(f)
|
1749
1750
|
shell = Shell.ByFaces(final_faces)
|
1750
1751
|
return_face = Topology.RemoveCoplanarFaces(shell, epsilon=0.1)
|
1752
|
+
|
1751
1753
|
if not Topology.IsInstance(return_face, "face"):
|
1752
1754
|
temp = Shell.ExternalBoundary(shell)
|
1753
1755
|
if Topology.IsInstance(temp, "Wire"):
|
@@ -1767,17 +1769,16 @@ class Face():
|
|
1767
1769
|
if not Topology.IsInstance(return_face, "Face"):
|
1768
1770
|
print("Face.Isovist - Error: Could not create isovist. Returning None.")
|
1769
1771
|
return None
|
1770
|
-
|
1771
1772
|
compAngle = 0
|
1772
1773
|
if fov == 360:
|
1773
|
-
pie = Face.Circle(origin=
|
1774
|
+
pie = Face.Circle(origin= flat_vertex, radius=max_d*1.2, sides=16)
|
1774
1775
|
else:
|
1775
|
-
compAngle = Vector.CompassAngle(Vector.North(), direction, mantissa=mantissa, tolerance=tolerance)
|
1776
|
-
fromAngle = -fov*0.5
|
1777
|
-
toAngle = fov*0.5
|
1778
|
-
c = Wire.Circle(origin=
|
1779
|
-
e1 = Edge.ByVertices(Wire.StartVertex(c),
|
1780
|
-
e2 = Edge.ByVertices(Wire.EndVertex(c),
|
1776
|
+
compAngle = Vector.CompassAngle(Vector.North(), direction, mantissa=mantissa, tolerance=tolerance)
|
1777
|
+
fromAngle = compAngle - fov*0.5
|
1778
|
+
toAngle = compAngle + fov*0.5
|
1779
|
+
c = Wire.Circle(origin= flat_vertex, radius=max_d*1.2, sides=int(16*(fov/360)), fromAngle=fromAngle, toAngle=toAngle, close = False)
|
1780
|
+
e1 = Edge.ByVertices(Wire.StartVertex(c), flat_vertex, silent=True)
|
1781
|
+
e2 = Edge.ByVertices(Wire.EndVertex(c), flat_vertex, silent=True)
|
1781
1782
|
edges = Topology.Edges(c) + [e1,e2]
|
1782
1783
|
pie = Face.ByWire(Topology.SelfMerge(Cluster.ByTopologies(edges)))
|
1783
1784
|
return_face = Topology.Intersect(pie, return_face)
|
topologicpy/version.py
CHANGED
@@ -1 +1 @@
|
|
1
|
-
__version__ = '0.7.
|
1
|
+
__version__ = '0.7.75'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: topologicpy
|
3
|
-
Version: 0.7.
|
3
|
+
Version: 0.7.75
|
4
4
|
Summary: An AI-Powered Spatial Modelling and Analysis Software Library for Architecture, Engineering, and Construction.
|
5
5
|
Author-email: Wassim Jabi <wassim.jabi@gmail.com>
|
6
6
|
License: AGPL v3 License
|
@@ -10,7 +10,7 @@ topologicpy/DGL.py,sha256=Dd6O08D-vSxpjHYgKm45JpKiaeGvWlg1BRMzYMAXGNc,138991
|
|
10
10
|
topologicpy/Dictionary.py,sha256=0AsGoz48pGTye_F4KcJopNjD9STeQ50LHc6PPvERFaA,31932
|
11
11
|
topologicpy/Edge.py,sha256=9u9SdUxuenLUIK26xwFvPoYV34p0dCfXmHHBxdgvAdM,67164
|
12
12
|
topologicpy/EnergyModel.py,sha256=AqTtmXE35SxvRXhG3vYAQd7GQDW-6HtjYPHua6ME4Eg,53762
|
13
|
-
topologicpy/Face.py,sha256=
|
13
|
+
topologicpy/Face.py,sha256=9E3AaTCkcENwmTbFgyZKkdmhjVXHO_q9clQSji2685M,124363
|
14
14
|
topologicpy/Graph.py,sha256=BuSg8ilbZd2Qqoenmtw5FrkSe1fDLFS6jshljvq4dOs,416822
|
15
15
|
topologicpy/Grid.py,sha256=9N6PE84qCm40TRi2WtlVZSBwXXr47zHpscEpZHg_JW4,18205
|
16
16
|
topologicpy/Helper.py,sha256=Sv35czP_j0oLDeJcN8usswUm4U3auiK1LQ_Z_HBvxxg,21716
|
@@ -28,9 +28,9 @@ topologicpy/Vector.py,sha256=A1g83zDHep58iVPY8WQ8iHNrSOfGWFEzvVeDuMnjDNY,33078
|
|
28
28
|
topologicpy/Vertex.py,sha256=ZS6xK89JKokBKc0W8frdRhhuzR8c-dI1TTLt7pTf1iA,71032
|
29
29
|
topologicpy/Wire.py,sha256=eVet2OToVsXi9AkDYo35LpfMPqJ6aKGD6QkiU4-Jvs8,182271
|
30
30
|
topologicpy/__init__.py,sha256=vlPCanUbxe5NifC4pHcnhSzkmmYcs_UrZrTlVMsxcFs,928
|
31
|
-
topologicpy/version.py,sha256=
|
32
|
-
topologicpy-0.7.
|
33
|
-
topologicpy-0.7.
|
34
|
-
topologicpy-0.7.
|
35
|
-
topologicpy-0.7.
|
36
|
-
topologicpy-0.7.
|
31
|
+
topologicpy/version.py,sha256=_z-7V8pRZYRzBtGJ6kU71OI2FO6m4ksLPaII5FUsSos,23
|
32
|
+
topologicpy-0.7.75.dist-info/LICENSE,sha256=FK0vJ73LuE8PYJAn7LutsReWR47-Ooovw2dnRe5yV6Q,681
|
33
|
+
topologicpy-0.7.75.dist-info/METADATA,sha256=97oZVTUIJcahnOsDDtV0s-8ipON7j5vVOT-khMIm1h4,10493
|
34
|
+
topologicpy-0.7.75.dist-info/WHEEL,sha256=R06PA3UVYHThwHvxuRWMqaGcr-PuniXahwjmQRFMEkY,91
|
35
|
+
topologicpy-0.7.75.dist-info/top_level.txt,sha256=J30bDzW92Ob7hw3zA8V34Jlp-vvsfIkGzkr8sqvb4Uw,12
|
36
|
+
topologicpy-0.7.75.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|