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/Context.py
CHANGED
@@ -1,79 +1,79 @@
|
|
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 topologic
|
18
|
-
|
19
|
-
class Context:
|
20
|
-
@staticmethod
|
21
|
-
def ByTopologyParameters(topology, u = 0.5, v = 0.5, w = 0.5):
|
22
|
-
"""
|
23
|
-
Creates a context object represented by the input topology.
|
24
|
-
|
25
|
-
Parameters
|
26
|
-
----------
|
27
|
-
topology : topologic.Topology
|
28
|
-
The input topology.
|
29
|
-
u : float , optional
|
30
|
-
The input *u* parameter. This defines the relative parameteric location of the content object along the *u* axis.
|
31
|
-
v : TYPE
|
32
|
-
The input *v* parameter. This defines the relative parameteric location of the content object along the *v* axis..
|
33
|
-
w : TYPE
|
34
|
-
The input *w* parameter. This defines the relative parameteric location of the content object along the *w* axis.
|
35
|
-
|
36
|
-
Returns
|
37
|
-
-------
|
38
|
-
topologic.Context
|
39
|
-
The created context object. See Aperture.ByObjectContext.
|
40
|
-
|
41
|
-
"""
|
42
|
-
if not isinstance(topology, topologic.Topology):
|
43
|
-
print("Context.ByTopologyParameters - Error: The input topology parameter is not a valid topologic topology. Returning None.")
|
44
|
-
return None
|
45
|
-
|
46
|
-
context = None
|
47
|
-
try:
|
48
|
-
context = topologic.Context.ByTopologyParameters(topology, u, v, w)
|
49
|
-
except:
|
50
|
-
print("Context.ByTopologyParameters - Error: The operation failed. Returning None.")
|
51
|
-
context = None
|
52
|
-
return context
|
53
|
-
|
54
|
-
@staticmethod
|
55
|
-
def Topology(context):
|
56
|
-
"""
|
57
|
-
Returns the topology of the input context.
|
58
|
-
|
59
|
-
Parameters
|
60
|
-
----------
|
61
|
-
context : topologic.Context
|
62
|
-
The input context.
|
63
|
-
|
64
|
-
Returns
|
65
|
-
-------
|
66
|
-
topologic.Topology
|
67
|
-
The topology of the input context.
|
68
|
-
|
69
|
-
"""
|
70
|
-
if not isinstance(context, topologic.Context):
|
71
|
-
print("Context.Topology - Error: The input context parameter is not a valid topologic context. Returning None.")
|
72
|
-
return None
|
73
|
-
topology = None
|
74
|
-
try:
|
75
|
-
topology = context.Topology()
|
76
|
-
except:
|
77
|
-
print("Context.Topology - Error: The operation failed. Returning None.")
|
78
|
-
topology = None
|
79
|
-
return topology
|
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 topologic_core as topologic
|
18
|
+
|
19
|
+
class Context:
|
20
|
+
@staticmethod
|
21
|
+
def ByTopologyParameters(topology, u = 0.5, v = 0.5, w = 0.5):
|
22
|
+
"""
|
23
|
+
Creates a context object represented by the input topology.
|
24
|
+
|
25
|
+
Parameters
|
26
|
+
----------
|
27
|
+
topology : topologic.Topology
|
28
|
+
The input topology.
|
29
|
+
u : float , optional
|
30
|
+
The input *u* parameter. This defines the relative parameteric location of the content object along the *u* axis.
|
31
|
+
v : TYPE
|
32
|
+
The input *v* parameter. This defines the relative parameteric location of the content object along the *v* axis..
|
33
|
+
w : TYPE
|
34
|
+
The input *w* parameter. This defines the relative parameteric location of the content object along the *w* axis.
|
35
|
+
|
36
|
+
Returns
|
37
|
+
-------
|
38
|
+
topologic.Context
|
39
|
+
The created context object. See Aperture.ByObjectContext.
|
40
|
+
|
41
|
+
"""
|
42
|
+
if not isinstance(topology, topologic.Topology):
|
43
|
+
print("Context.ByTopologyParameters - Error: The input topology parameter is not a valid topologic topology. Returning None.")
|
44
|
+
return None
|
45
|
+
|
46
|
+
context = None
|
47
|
+
try:
|
48
|
+
context = topologic.Context.ByTopologyParameters(topology, u, v, w)
|
49
|
+
except:
|
50
|
+
print("Context.ByTopologyParameters - Error: The operation failed. Returning None.")
|
51
|
+
context = None
|
52
|
+
return context
|
53
|
+
|
54
|
+
@staticmethod
|
55
|
+
def Topology(context):
|
56
|
+
"""
|
57
|
+
Returns the topology of the input context.
|
58
|
+
|
59
|
+
Parameters
|
60
|
+
----------
|
61
|
+
context : topologic.Context
|
62
|
+
The input context.
|
63
|
+
|
64
|
+
Returns
|
65
|
+
-------
|
66
|
+
topologic.Topology
|
67
|
+
The topology of the input context.
|
68
|
+
|
69
|
+
"""
|
70
|
+
if not isinstance(context, topologic.Context):
|
71
|
+
print("Context.Topology - Error: The input context parameter is not a valid topologic context. Returning None.")
|
72
|
+
return None
|
73
|
+
topology = None
|
74
|
+
try:
|
75
|
+
topology = context.Topology()
|
76
|
+
except:
|
77
|
+
print("Context.Topology - Error: The operation failed. Returning None.")
|
78
|
+
topology = None
|
79
|
+
return topology
|