topologicpy 0.8.46__py3-none-any.whl → 0.8.48__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/ANN.py +19 -19
- topologicpy/BVH.py +5 -5
- topologicpy/CSG.py +17 -17
- topologicpy/Cell.py +295 -295
- topologicpy/CellComplex.py +214 -67
- topologicpy/Cluster.py +35 -35
- topologicpy/Color.py +8 -8
- topologicpy/DGL.py +52 -52
- topologicpy/Dictionary.py +22 -22
- topologicpy/Edge.py +77 -77
- topologicpy/EnergyModel.py +25 -25
- topologicpy/Face.py +270 -270
- topologicpy/Graph.py +1052 -675
- topologicpy/Grid.py +24 -24
- topologicpy/Helper.py +8 -8
- topologicpy/Honeybee.py +13 -13
- topologicpy/Matrix.py +11 -11
- topologicpy/Neo4j.py +21 -21
- topologicpy/Plotly.py +213 -213
- topologicpy/PyG.py +41 -41
- topologicpy/ShapeGrammar.py +7 -7
- topologicpy/Shell.py +104 -104
- topologicpy/Sun.py +46 -46
- topologicpy/Topology.py +392 -392
- topologicpy/Vector.py +25 -25
- topologicpy/Vertex.py +64 -64
- topologicpy/Wire.py +264 -250
- topologicpy/version.py +1 -1
- {topologicpy-0.8.46.dist-info → topologicpy-0.8.48.dist-info}/METADATA +1 -1
- topologicpy-0.8.48.dist-info/RECORD +38 -0
- topologicpy-0.8.46.dist-info/RECORD +0 -38
- {topologicpy-0.8.46.dist-info → topologicpy-0.8.48.dist-info}/WHEEL +0 -0
- {topologicpy-0.8.46.dist-info → topologicpy-0.8.48.dist-info}/licenses/LICENSE +0 -0
- {topologicpy-0.8.46.dist-info → topologicpy-0.8.48.dist-info}/top_level.txt +0 -0
topologicpy/Grid.py
CHANGED
@@ -25,21 +25,21 @@ class Grid():
|
|
25
25
|
Parameters
|
26
26
|
----------
|
27
27
|
face : topologic_core.Face , optional
|
28
|
-
The input face. If set to None, the grid will be created on the XY plane.
|
28
|
+
The input face. If set to None, the grid will be created on the XY plane. Default is None.
|
29
29
|
uOrigin : topologic_core.Vertex , optional
|
30
|
-
The origin of the *u* grid lines. If set to None: if the face is set, the uOrigin will be set to vertex at the face's 0,0 paratmer. If the face is set to None, the uOrigin will be set to the origin.
|
30
|
+
The origin of the *u* grid lines. If set to None: if the face is set, the uOrigin will be set to vertex at the face's 0,0 paratmer. If the face is set to None, the uOrigin will be set to the origin. Default is None.
|
31
31
|
vOrigin : topologic_core.Vertex , optional
|
32
|
-
The origin of the *v* grid lines. If set to None: if the face is set, the vOrigin will be set to vertex at the face's 0,0 paratmer. If the face is set to None, the vOrigin will be set to the origin.
|
32
|
+
The origin of the *v* grid lines. If set to None: if the face is set, the vOrigin will be set to vertex at the face's 0,0 paratmer. If the face is set to None, the vOrigin will be set to the origin. Default is None.
|
33
33
|
uRange : list , optional
|
34
|
-
A list of distances for the *u* grid lines from the uOrigin.
|
34
|
+
A list of distances for the *u* grid lines from the uOrigin. Default is [-0.5,-0.25,0, 0.25,0.5].
|
35
35
|
vRange : list , optional
|
36
|
-
A list of distances for the *v* grid lines from the vOrigin.
|
36
|
+
A list of distances for the *v* grid lines from the vOrigin. Default is [-0.5,-0.25,0, 0.25,0.5].
|
37
37
|
clip : bool , optional
|
38
|
-
If True the grid will be clipped by the shape of the input face.
|
38
|
+
If True the grid will be clipped by the shape of the input face. Default is False.
|
39
39
|
mantissa : int , optional
|
40
|
-
The
|
40
|
+
The number of decimal places to round the result to. Default is 6.
|
41
41
|
tolerance : float , optional
|
42
|
-
The desired tolerance.
|
42
|
+
The desired tolerance. Default is 0.0001.
|
43
43
|
|
44
44
|
Returns
|
45
45
|
-------
|
@@ -139,13 +139,13 @@ class Grid():
|
|
139
139
|
face : topologic_core.Face
|
140
140
|
The input face.
|
141
141
|
uRange : list , optional
|
142
|
-
A list of *u* parameters for the *u* grid lines.
|
142
|
+
A list of *u* parameters for the *u* grid lines. Default is [0,0.25,0.5, 0.75, 1.0].
|
143
143
|
vRange : list , optional
|
144
|
-
A list of *v* parameters for the *v* grid lines.
|
144
|
+
A list of *v* parameters for the *v* grid lines. Default is [0,0.25,0.5, 0.75, 1.0].
|
145
145
|
clip : bool , optional
|
146
|
-
If True the grid will be clipped by the shape of the input face.
|
146
|
+
If True the grid will be clipped by the shape of the input face. Default is False.
|
147
147
|
tolerance : float , optional
|
148
|
-
The desired tolerance.
|
148
|
+
The desired tolerance. Default is 0.0001.
|
149
149
|
|
150
150
|
Returns
|
151
151
|
-------
|
@@ -226,19 +226,19 @@ class Grid():
|
|
226
226
|
Parameters
|
227
227
|
----------
|
228
228
|
face : topologic_core.Face , optional
|
229
|
-
The input face. If set to None, the grid will be created on the XY plane.
|
229
|
+
The input face. If set to None, the grid will be created on the XY plane. Default is None.
|
230
230
|
origin : topologic_core.Vertex , optional
|
231
|
-
The origin of the grid vertices. If set to None: if the face is set, the origin will be set to vertex at the face's 0,0 paratmer. If the face is set to None, the origin will be set to (0, 0, 0).
|
231
|
+
The origin of the grid vertices. If set to None: if the face is set, the origin will be set to vertex at the face's 0,0 paratmer. If the face is set to None, the origin will be set to (0, 0, 0). Default is None.
|
232
232
|
uRange : list , optional
|
233
|
-
A list of distances for the *u* grid lines from the uOrigin.
|
233
|
+
A list of distances for the *u* grid lines from the uOrigin. Default is [-0.5,-0.25,0, 0.25,0.5].
|
234
234
|
vRange : list , optional
|
235
|
-
A list of distances for the *v* grid lines from the vOrigin.
|
235
|
+
A list of distances for the *v* grid lines from the vOrigin. Default is [-0.5,-0.25,0, 0.25,0.5].
|
236
236
|
clip : bool , optional
|
237
|
-
If True the grid will be clipped by the shape of the input face.
|
237
|
+
If True the grid will be clipped by the shape of the input face. Default is False.
|
238
238
|
mantissa : int , optional
|
239
|
-
The
|
239
|
+
The number of decimal places to round the result to. Default is 6.
|
240
240
|
tolerance : float , optional
|
241
|
-
The desired tolerance.
|
241
|
+
The desired tolerance. Default is 0.0001.
|
242
242
|
|
243
243
|
Returns
|
244
244
|
-------
|
@@ -304,15 +304,15 @@ class Grid():
|
|
304
304
|
Parameters
|
305
305
|
----------
|
306
306
|
face : topologic_core.Face , optional
|
307
|
-
The input face. If set to None, the grid will be created on the XY plane.
|
307
|
+
The input face. If set to None, the grid will be created on the XY plane. Default is None.
|
308
308
|
uRange : list , optional
|
309
|
-
A list of *u* parameters for the *u* grid lines from the uOrigin.
|
309
|
+
A list of *u* parameters for the *u* grid lines from the uOrigin. Default is [0.0,0.25,0.5,0.75,1.0].
|
310
310
|
vRange : list , optional
|
311
|
-
A list of *v* parameters for the *v* grid lines from the vOrigin.
|
311
|
+
A list of *v* parameters for the *v* grid lines from the vOrigin. Default is [0.0,0.25,0.5,0.75,1.0].
|
312
312
|
clip : bool , optional
|
313
|
-
If True the grid will be clipped by the shape of the input face.
|
313
|
+
If True the grid will be clipped by the shape of the input face. Default is False.
|
314
314
|
tolerance : float , optional
|
315
|
-
The desired tolerance.
|
315
|
+
The desired tolerance. Default is 0.0001.
|
316
316
|
|
317
317
|
Returns
|
318
318
|
-------
|
topologicpy/Helper.py
CHANGED
@@ -46,11 +46,11 @@ class Helper:
|
|
46
46
|
listA : list
|
47
47
|
The input list.
|
48
48
|
mantissa : int , optional
|
49
|
-
The desired length of the mantissa.
|
49
|
+
The desired length of the mantissa. Default is 6
|
50
50
|
tolerance : float , optional
|
51
|
-
The desired tolerance.
|
51
|
+
The desired tolerance. Default is 0.0001.
|
52
52
|
silent : bool , optional
|
53
|
-
If set to True, error and warning messages are suppressed.
|
53
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
54
54
|
|
55
55
|
Returns
|
56
56
|
-------
|
@@ -164,7 +164,7 @@ class Helper:
|
|
164
164
|
keys : str or list or comma-separated str input parameters
|
165
165
|
The key or keys in the topology's dictionary to use for clustering.
|
166
166
|
silent : bool , optional
|
167
|
-
If set to True, error and warning messages are suppressed.
|
167
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
168
168
|
|
169
169
|
|
170
170
|
Returns
|
@@ -427,7 +427,7 @@ class Helper:
|
|
427
427
|
listA : list
|
428
428
|
The input nested list.
|
429
429
|
threshold : float , optional
|
430
|
-
The desired merge threshold value.
|
430
|
+
The desired merge threshold value. Default is 0.0001.
|
431
431
|
|
432
432
|
Returns
|
433
433
|
-------
|
@@ -464,7 +464,7 @@ class Helper:
|
|
464
464
|
listA : list
|
465
465
|
The input list.
|
466
466
|
silent : bool , optional
|
467
|
-
If set to True, error and warning messages are suppressed.
|
467
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
468
468
|
|
469
469
|
Returns
|
470
470
|
-------
|
@@ -500,7 +500,7 @@ class Helper:
|
|
500
500
|
listA : list
|
501
501
|
The input list.
|
502
502
|
silent : bool , optional
|
503
|
-
If set to True, error and warning messages are suppressed.
|
503
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
504
504
|
|
505
505
|
Returns
|
506
506
|
-------
|
@@ -535,7 +535,7 @@ class Helper:
|
|
535
535
|
listA : list
|
536
536
|
The input nested list.
|
537
537
|
mantissa : int , optional
|
538
|
-
The
|
538
|
+
The number of decimal places to round the result to. Default is 6.
|
539
539
|
|
540
540
|
Returns
|
541
541
|
-------
|
topologicpy/Honeybee.py
CHANGED
@@ -159,7 +159,7 @@ class Honeybee:
|
|
159
159
|
path : str
|
160
160
|
The location of the output file.
|
161
161
|
overwrite : bool , optional
|
162
|
-
If set to True this method overwrites any existing file. Otherwise, it won't.
|
162
|
+
If set to True this method overwrites any existing file. Otherwise, it won't. Default is False.
|
163
163
|
|
164
164
|
Returns
|
165
165
|
-------
|
@@ -215,29 +215,29 @@ class Honeybee:
|
|
215
215
|
tpBuilding : topologic_core.CellComplex or topologic_core.Cell
|
216
216
|
The input building topology.
|
217
217
|
tpShadingFaceCluster : topologic_core.Cluster , optional
|
218
|
-
The input cluster for shading faces.
|
218
|
+
The input cluster for shading faces. Default is None.
|
219
219
|
buildingName : str , optional
|
220
|
-
The desired name of the building.
|
220
|
+
The desired name of the building. Default is "Generic_Building".
|
221
221
|
defaultProgramIdentifier: str , optional
|
222
|
-
The desired default program identifier.
|
222
|
+
The desired default program identifier. Default is "Generic Office Program".
|
223
223
|
defaultConstructionSetIdentifier: str , optional
|
224
|
-
The desired default construction set identifier.
|
224
|
+
The desired default construction set identifier. Default is "Default Generic Construction Set".
|
225
225
|
coolingSetpoint : float , optional
|
226
|
-
The desired HVAC cooling set point in degrees Celsius.
|
226
|
+
The desired HVAC cooling set point in degrees Celsius. Default is 25.
|
227
227
|
heatingSetpoint : float , optional
|
228
|
-
The desired HVAC heating set point in degrees Celsius.
|
228
|
+
The desired HVAC heating set point in degrees Celsius. Default is 20.
|
229
229
|
humidifyingSetpoint : float , optional
|
230
|
-
The desired HVAC humidifying set point in percentage.
|
230
|
+
The desired HVAC humidifying set point in percentage. Default is 55.
|
231
231
|
roomNameKey : str , optional
|
232
|
-
The dictionary key under which the room name is stored.
|
232
|
+
The dictionary key under which the room name is stored. Default is "TOPOLOGIC_name".
|
233
233
|
roomTypeKey : str , optional
|
234
|
-
The dictionary key under which the room type is stored.
|
234
|
+
The dictionary key under which the room type is stored. Default is "TOPOLOGIC_type".
|
235
235
|
apertureTypeKey : str , optional
|
236
|
-
The dictionary key under which the aperture type is stored.
|
236
|
+
The dictionary key under which the aperture type is stored. Default is "TOPOLOGIC_type".
|
237
237
|
addSensorGrid : bool , optional
|
238
|
-
If set to True a sensor grid is add to horizontal surfaces.
|
238
|
+
If set to True a sensor grid is add to horizontal surfaces. Default is False.
|
239
239
|
mantissa : int , optional
|
240
|
-
The
|
240
|
+
The number of decimal places to round the result to. Default is 6.
|
241
241
|
|
242
242
|
Returns
|
243
243
|
-------
|
topologicpy/Matrix.py
CHANGED
@@ -66,9 +66,9 @@ class Matrix:
|
|
66
66
|
target : list
|
67
67
|
The 4X3 matrix representing target coordinate system. The rows are in the order: Origin, X-Axis, Y-Axis, Z-Axis.
|
68
68
|
mantissa : int , optional
|
69
|
-
The
|
69
|
+
The number of decimal places to round the result to. Default is 6.
|
70
70
|
silent : bool , optional
|
71
|
-
If set to True, error and warning messages are suppressed.
|
71
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
72
72
|
|
73
73
|
Returns
|
74
74
|
-------
|
@@ -176,11 +176,11 @@ class Matrix:
|
|
176
176
|
Parameters
|
177
177
|
----------
|
178
178
|
scaleX : float , optional
|
179
|
-
The desired scaling factor along the X axis.
|
179
|
+
The desired scaling factor along the X axis. Default is 1.
|
180
180
|
scaleY : float , optional
|
181
|
-
The desired scaling factor along the X axis.
|
181
|
+
The desired scaling factor along the X axis. Default is 1.
|
182
182
|
scaleZ : float , optional
|
183
|
-
The desired scaling factor along the X axis.
|
183
|
+
The desired scaling factor along the X axis. Default is 1.
|
184
184
|
|
185
185
|
Returns
|
186
186
|
-------
|
@@ -201,11 +201,11 @@ class Matrix:
|
|
201
201
|
Parameters
|
202
202
|
----------
|
203
203
|
translateX : float , optional
|
204
|
-
The desired translation distance along the X axis.
|
204
|
+
The desired translation distance along the X axis. Default is 0.
|
205
205
|
translateY : float , optional
|
206
|
-
The desired translation distance along the X axis.
|
206
|
+
The desired translation distance along the X axis. Default is 0.
|
207
207
|
translateZ : float , optional
|
208
|
-
The desired translation distance along the X axis.
|
208
|
+
The desired translation distance along the X axis. Default is 0.
|
209
209
|
|
210
210
|
Returns
|
211
211
|
-------
|
@@ -415,9 +415,9 @@ class Matrix:
|
|
415
415
|
matrix : list
|
416
416
|
The input matrix. Assumed to be a laplacian matrix.
|
417
417
|
mantissa : int , optional
|
418
|
-
The
|
418
|
+
The number of decimal places to round the result to. Default is 6.
|
419
419
|
silent : bool , optional
|
420
|
-
If set to True, error and warning messages are suppressed.
|
420
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
421
421
|
|
422
422
|
Returns
|
423
423
|
-------
|
@@ -496,7 +496,7 @@ class Matrix:
|
|
496
496
|
matA : list of list of float
|
497
497
|
The input matrix.
|
498
498
|
silent : bool , optional
|
499
|
-
If set to True, error and warning messages are suppressed.
|
499
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
500
500
|
|
501
501
|
Returns
|
502
502
|
-------
|
topologicpy/Neo4j.py
CHANGED
@@ -47,21 +47,21 @@ class Neo4j:
|
|
47
47
|
cypher : str, optional
|
48
48
|
If set to a non-empty string, a Cypher query will be run on the neo4j graph database to return a sub-graph. Default is None.
|
49
49
|
xMin : float, optional
|
50
|
-
The desired minimum value to assign for a vertex's X coordinate.
|
50
|
+
The desired minimum value to assign for a vertex's X coordinate. Default is -0.5.
|
51
51
|
yMin : float, optional
|
52
|
-
The desired minimum value to assign for a vertex's Y coordinate.
|
52
|
+
The desired minimum value to assign for a vertex's Y coordinate. Default is -0.5.
|
53
53
|
zMin : float, optional
|
54
|
-
The desired minimum value to assign for a vertex's Z coordinate.
|
54
|
+
The desired minimum value to assign for a vertex's Z coordinate. Default is -0.5.
|
55
55
|
xMax : float, optional
|
56
|
-
The desired maximum value to assign for a vertex's X coordinate.
|
56
|
+
The desired maximum value to assign for a vertex's X coordinate. Default is 0.5.
|
57
57
|
yMax : float, optional
|
58
|
-
The desired maximum value to assign for a vertex's Y coordinate.
|
58
|
+
The desired maximum value to assign for a vertex's Y coordinate. Default is 0.5.
|
59
59
|
zMax : float, optional
|
60
|
-
The desired maximum value to assign for a vertex's Z coordinate.
|
60
|
+
The desired maximum value to assign for a vertex's Z coordinate. Default is 0.5.
|
61
61
|
silent : bool, optional
|
62
|
-
If set to True,
|
62
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
63
63
|
tolerance : float, optional
|
64
|
-
The desired tolerance.
|
64
|
+
The desired tolerance. Default is 0.0001.
|
65
65
|
|
66
66
|
Returns
|
67
67
|
-------
|
@@ -227,30 +227,30 @@ class Neo4j:
|
|
227
227
|
The input neo4j driver.
|
228
228
|
vertexLabelKey : str , optional
|
229
229
|
The returned vertices are labelled according to the dictionary values stored under this key.
|
230
|
-
If the vertexLabelKey does not exist, it will be created and the vertices are labelled numerically using the format defaultVertexLabel_XXX.
|
230
|
+
If the vertexLabelKey does not exist, it will be created and the vertices are labelled numerically using the format defaultVertexLabel_XXX. Default is "label".
|
231
231
|
defaultVertexLabel : str , optional
|
232
|
-
The default vertex label to use if no value is found under the vertexLabelKey.
|
232
|
+
The default vertex label to use if no value is found under the vertexLabelKey. Default is "NODE".
|
233
233
|
vertexCategoryKey : str , optional
|
234
234
|
The returned vertices are categorized according to the dictionary values stored under this key. The dfefault is "category".
|
235
235
|
defaultVertexCategory : str , optional
|
236
|
-
The default vertex category to use if no value is found under the vertexCategoryKey.
|
236
|
+
The default vertex category to use if no value is found under the vertexCategoryKey. Default is None.
|
237
237
|
edgeLabelKey : str , optional
|
238
238
|
The returned edges are labelled according to the dictionary values stored under this key.
|
239
|
-
If the edgeLabelKey does not exist, it will be created and the edges are labelled numerically using the format defaultEdgeLabel_XXX.
|
239
|
+
If the edgeLabelKey does not exist, it will be created and the edges are labelled numerically using the format defaultEdgeLabel_XXX. Default is "label".
|
240
240
|
defaultEdgeLabel : str , optional
|
241
|
-
The default edge label to use if no value is found under the edgeLabelKey.
|
241
|
+
The default edge label to use if no value is found under the edgeLabelKey. Default is "CONNECTED_TO".
|
242
242
|
edgeCategoryKey : str , optional
|
243
243
|
The returned edges are categorized according to the dictionary values stored under this key. The dfefault is "category".
|
244
244
|
defaultEdgeCategory : str , optional
|
245
|
-
The default edge category to use if no value is found under the edgeCategoryKey.
|
245
|
+
The default edge category to use if no value is found under the edgeCategoryKey. Default is None.
|
246
246
|
bidirectional : bool , optional
|
247
247
|
If set to True, the output Neo4j graph is forced to be bidirectional. The defaul is True.
|
248
248
|
mantissa : int , optional
|
249
|
-
The
|
249
|
+
The number of decimal places to round the result to. Default is 6.
|
250
250
|
tolerance : float , optional
|
251
|
-
The desired tolerance.
|
251
|
+
The desired tolerance. Default is 0.0001.
|
252
252
|
silent : bool , optional
|
253
|
-
If set to True, error and warning messages are suppressed.
|
253
|
+
If set to True, error and warning messages are suppressed. Default is False.
|
254
254
|
|
255
255
|
Returns
|
256
256
|
-------
|
@@ -394,17 +394,17 @@ class Neo4j:
|
|
394
394
|
graph : topologic_core.Graph
|
395
395
|
The input topologic graph.
|
396
396
|
labelKey : str , optional
|
397
|
-
The dictionary key under which to find the vertex's label value.
|
397
|
+
The dictionary key under which to find the vertex's label value. Default is None which means the vertex gets the name 'TopologicGraphVertex'.
|
398
398
|
relationshipKey : str , optional
|
399
|
-
The dictionary key under which to find the edge's relationship value.
|
399
|
+
The dictionary key under which to find the edge's relationship value. Default is None which means the edge gets the relationship type 'Connected To'.
|
400
400
|
bidirectional : bool , optional
|
401
401
|
If set to True, the edges in the neo4j graph are set to be bi-drectional.
|
402
402
|
deleteAll : bool , optional
|
403
403
|
If set to True, all previous entities are deleted before adding the new entities.
|
404
404
|
mantissa : int , optional
|
405
|
-
The
|
405
|
+
The number of decimal places to round the result to. Default is 6.
|
406
406
|
tolerance : float , optional
|
407
|
-
The desired tolerance.
|
407
|
+
The desired tolerance. Default is 0.0001.
|
408
408
|
|
409
409
|
Returns
|
410
410
|
-------
|