topologicpy 0.5.9__py3-none-any.whl → 6.0.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 +72 -72
- topologicpy/Cell.py +2169 -2169
- topologicpy/CellComplex.py +1137 -1137
- topologicpy/Cluster.py +1288 -1280
- topologicpy/Color.py +423 -423
- topologicpy/Context.py +79 -79
- topologicpy/DGL.py +3213 -3240
- topologicpy/Dictionary.py +698 -698
- topologicpy/Edge.py +1187 -1187
- topologicpy/EnergyModel.py +1180 -1152
- topologicpy/Face.py +2141 -2141
- topologicpy/Graph.py +7768 -7768
- topologicpy/Grid.py +353 -353
- topologicpy/Helper.py +507 -507
- topologicpy/Honeybee.py +461 -461
- topologicpy/Matrix.py +271 -271
- topologicpy/Neo4j.py +521 -521
- topologicpy/Plotly.py +2 -2
- topologicpy/Polyskel.py +541 -541
- topologicpy/Shell.py +1768 -1768
- topologicpy/Speckle.py +508 -508
- topologicpy/Topology.py +7060 -7002
- topologicpy/Vector.py +905 -905
- topologicpy/Vertex.py +1585 -1585
- topologicpy/Wire.py +3050 -3050
- topologicpy/__init__.py +22 -38
- topologicpy/version.py +1 -0
- {topologicpy-0.5.9.dist-info → topologicpy-6.0.0.dist-info}/LICENSE +661 -704
- topologicpy-6.0.0.dist-info/METADATA +751 -0
- topologicpy-6.0.0.dist-info/RECORD +32 -0
- topologicpy/bin/linux/topologic/__init__.py +0 -2
- topologicpy/bin/linux/topologic/libTKBO-6bdf205d.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKBRep-2960a069.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKBool-c44b74bd.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKFillet-9a670ba0.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKG2d-8f31849e.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKG3d-4c6bce57.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKGeomAlgo-26066fd9.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKGeomBase-2116cabe.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKMath-72572fa8.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKMesh-2a060427.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKOffset-6cab68ff.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKPrim-eb1262b3.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKShHealing-e67e5cc7.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKTopAlgo-e4c96c33.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libTKernel-fb7fe3b7.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic/libgcc_s-32c1665e.so.1 +0 -0
- topologicpy/bin/linux/topologic/libstdc++-672d7b41.so.6.0.30 +0 -0
- topologicpy/bin/linux/topologic/topologic.cpython-310-x86_64-linux-gnu.so +0 -0
- topologicpy/bin/linux/topologic/topologic.cpython-311-x86_64-linux-gnu.so +0 -0
- topologicpy/bin/linux/topologic/topologic.cpython-38-x86_64-linux-gnu.so +0 -0
- topologicpy/bin/linux/topologic/topologic.cpython-39-x86_64-linux-gnu.so +0 -0
- topologicpy/bin/linux/topologic.libs/libTKBO-6bdf205d.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKBRep-2960a069.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKBool-c44b74bd.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKFillet-9a670ba0.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKG2d-8f31849e.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKG3d-4c6bce57.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKGeomAlgo-26066fd9.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKGeomBase-2116cabe.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKMath-72572fa8.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKMesh-2a060427.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKOffset-6cab68ff.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKPrim-eb1262b3.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKShHealing-e67e5cc7.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKTopAlgo-e4c96c33.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libTKernel-fb7fe3b7.so.7.7.0 +0 -0
- topologicpy/bin/linux/topologic.libs/libgcc_s-32c1665e.so.1 +0 -0
- topologicpy/bin/linux/topologic.libs/libstdc++-672d7b41.so.6.0.30 +0 -0
- topologicpy/bin/macos/topologic/__init__.py +0 -2
- topologicpy/bin/windows/topologic/TKBO-f6b191de.dll +0 -0
- topologicpy/bin/windows/topologic/TKBRep-e56a600e.dll +0 -0
- topologicpy/bin/windows/topologic/TKBool-7b8d47ae.dll +0 -0
- topologicpy/bin/windows/topologic/TKFillet-0ddbf0a8.dll +0 -0
- topologicpy/bin/windows/topologic/TKG2d-2e2dee3d.dll +0 -0
- topologicpy/bin/windows/topologic/TKG3d-6674513d.dll +0 -0
- topologicpy/bin/windows/topologic/TKGeomAlgo-d240e370.dll +0 -0
- topologicpy/bin/windows/topologic/TKGeomBase-df87aba5.dll +0 -0
- topologicpy/bin/windows/topologic/TKMath-45bd625a.dll +0 -0
- topologicpy/bin/windows/topologic/TKMesh-d6e826b1.dll +0 -0
- topologicpy/bin/windows/topologic/TKOffset-79b9cc94.dll +0 -0
- topologicpy/bin/windows/topologic/TKPrim-aa430a86.dll +0 -0
- topologicpy/bin/windows/topologic/TKShHealing-bb48be89.dll +0 -0
- topologicpy/bin/windows/topologic/TKTopAlgo-7d0d1e22.dll +0 -0
- topologicpy/bin/windows/topologic/TKernel-08c8cfbb.dll +0 -0
- topologicpy/bin/windows/topologic/__init__.py +0 -2
- topologicpy/bin/windows/topologic/topologic.cp310-win_amd64.pyd +0 -0
- topologicpy/bin/windows/topologic/topologic.cp311-win_amd64.pyd +0 -0
- topologicpy/bin/windows/topologic/topologic.cp38-win_amd64.pyd +0 -0
- topologicpy/bin/windows/topologic/topologic.cp39-win_amd64.pyd +0 -0
- topologicpy-0.5.9.dist-info/METADATA +0 -86
- topologicpy-0.5.9.dist-info/RECORD +0 -91
- {topologicpy-0.5.9.dist-info → topologicpy-6.0.0.dist-info}/WHEEL +0 -0
- {topologicpy-0.5.9.dist-info → topologicpy-6.0.0.dist-info}/top_level.txt +0 -0
topologicpy/Aperture.py
CHANGED
@@ -1,73 +1,73 @@
|
|
1
|
-
# Copyright (C) 2024
|
2
|
-
# Wassim Jabi <wassim.jabi@gmail.com>
|
3
|
-
#
|
4
|
-
# This program is free software: you can redistribute it and/or modify it under
|
5
|
-
# the terms of the GNU Affero General Public License as published by the Free Software
|
6
|
-
# Foundation, either version 3 of the License, or (at your option) any later
|
7
|
-
# version.
|
8
|
-
#
|
9
|
-
# This program is distributed in the hope that it will be useful, but WITHOUT
|
10
|
-
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
11
|
-
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
12
|
-
# details.
|
13
|
-
#
|
14
|
-
# You should have received a copy of the GNU Affero General Public License along with
|
15
|
-
# this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
-
|
17
|
-
import topologicpy
|
18
|
-
import topologic
|
19
|
-
|
20
|
-
class Aperture(topologic.Aperture):
|
21
|
-
@staticmethod
|
22
|
-
def Topology(aperture: topologic.Aperture) -> topologic.Topology:
|
23
|
-
"""
|
24
|
-
Returns the topology of the input aperture.
|
25
|
-
|
26
|
-
Parameters
|
27
|
-
----------
|
28
|
-
aperture : topologic.Aperture
|
29
|
-
The input aperture.
|
30
|
-
|
31
|
-
Returns
|
32
|
-
-------
|
33
|
-
topologic.Topology
|
34
|
-
The topology of the input aperture.
|
35
|
-
|
36
|
-
"""
|
37
|
-
if not isinstance(aperture, topologic.Aperture):
|
38
|
-
print("Aperture.Topology - Error: The input aperture parameter is not a valid topologic aperture. Returning None.")
|
39
|
-
return None
|
40
|
-
return topologic.Aperture.Topology(aperture)
|
41
|
-
|
42
|
-
@staticmethod
|
43
|
-
def ByTopologyContext(topology: topologic.Topology, context: topologic.Context) -> topologic.Aperture:
|
44
|
-
"""
|
45
|
-
Creates an aperture object represented by the input topology and one that belongs to the input context.
|
46
|
-
|
47
|
-
Parameters
|
48
|
-
----------
|
49
|
-
topology : topologic.Topology
|
50
|
-
The input topology that represents the aperture.
|
51
|
-
context : topologic.Context
|
52
|
-
The context of the aperture. See Context class.
|
53
|
-
|
54
|
-
Returns
|
55
|
-
-------
|
56
|
-
topologic.Aperture
|
57
|
-
The created aperture.
|
58
|
-
|
59
|
-
"""
|
60
|
-
if not isinstance(topology, topologic.Topology):
|
61
|
-
print("Aperture.ByTopologyContext - Error: The input topology parameter is not a valid topologic topology. Returning None.")
|
62
|
-
return None
|
63
|
-
if not isinstance(context, topologic.Context):
|
64
|
-
print("Aperture.ByTopologyContext - Error: The input context parameter is not a valid topologic context. Returning None.")
|
65
|
-
return None
|
66
|
-
aperture = None
|
67
|
-
try:
|
68
|
-
aperture = topologic.Aperture.ByTopologyContext(topology, context)
|
69
|
-
except:
|
70
|
-
print("Aperture.ByTopologyContext - Error: The operation failed. Returning None.")
|
71
|
-
aperture = None
|
72
|
-
return aperture
|
1
|
+
# Copyright (C) 2024
|
2
|
+
# Wassim Jabi <wassim.jabi@gmail.com>
|
3
|
+
#
|
4
|
+
# This program is free software: you can redistribute it and/or modify it under
|
5
|
+
# the terms of the GNU Affero General Public License as published by the Free Software
|
6
|
+
# Foundation, either version 3 of the License, or (at your option) any later
|
7
|
+
# version.
|
8
|
+
#
|
9
|
+
# This program is distributed in the hope that it will be useful, but WITHOUT
|
10
|
+
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
11
|
+
# FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
|
12
|
+
# details.
|
13
|
+
#
|
14
|
+
# You should have received a copy of the GNU Affero General Public License along with
|
15
|
+
# this program. If not, see <https://www.gnu.org/licenses/>.
|
16
|
+
|
17
|
+
import topologicpy
|
18
|
+
import topologic_core as topologic
|
19
|
+
|
20
|
+
class Aperture(topologic.Aperture):
|
21
|
+
@staticmethod
|
22
|
+
def Topology(aperture: topologic.Aperture) -> topologic.Topology:
|
23
|
+
"""
|
24
|
+
Returns the topology of the input aperture.
|
25
|
+
|
26
|
+
Parameters
|
27
|
+
----------
|
28
|
+
aperture : topologic.Aperture
|
29
|
+
The input aperture.
|
30
|
+
|
31
|
+
Returns
|
32
|
+
-------
|
33
|
+
topologic.Topology
|
34
|
+
The topology of the input aperture.
|
35
|
+
|
36
|
+
"""
|
37
|
+
if not isinstance(aperture, topologic.Aperture):
|
38
|
+
print("Aperture.Topology - Error: The input aperture parameter is not a valid topologic aperture. Returning None.")
|
39
|
+
return None
|
40
|
+
return topologic.Aperture.Topology(aperture)
|
41
|
+
|
42
|
+
@staticmethod
|
43
|
+
def ByTopologyContext(topology: topologic.Topology, context: topologic.Context) -> topologic.Aperture:
|
44
|
+
"""
|
45
|
+
Creates an aperture object represented by the input topology and one that belongs to the input context.
|
46
|
+
|
47
|
+
Parameters
|
48
|
+
----------
|
49
|
+
topology : topologic.Topology
|
50
|
+
The input topology that represents the aperture.
|
51
|
+
context : topologic.Context
|
52
|
+
The context of the aperture. See Context class.
|
53
|
+
|
54
|
+
Returns
|
55
|
+
-------
|
56
|
+
topologic.Aperture
|
57
|
+
The created aperture.
|
58
|
+
|
59
|
+
"""
|
60
|
+
if not isinstance(topology, topologic.Topology):
|
61
|
+
print("Aperture.ByTopologyContext - Error: The input topology parameter is not a valid topologic topology. Returning None.")
|
62
|
+
return None
|
63
|
+
if not isinstance(context, topologic.Context):
|
64
|
+
print("Aperture.ByTopologyContext - Error: The input context parameter is not a valid topologic context. Returning None.")
|
65
|
+
return None
|
66
|
+
aperture = None
|
67
|
+
try:
|
68
|
+
aperture = topologic.Aperture.ByTopologyContext(topology, context)
|
69
|
+
except:
|
70
|
+
print("Aperture.ByTopologyContext - Error: The operation failed. Returning None.")
|
71
|
+
aperture = None
|
72
|
+
return aperture
|
73
73
|
|