topologicpy 0.5.3__py3-none-any.whl → 0.5.5__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/Cell.py +112 -135
- topologicpy/CellComplex.py +15 -18
- topologicpy/Cluster.py +3 -3
- topologicpy/Color.py +10 -10
- topologicpy/Edge.py +12 -9
- topologicpy/Face.py +189 -44
- topologicpy/Graph.py +639 -69
- topologicpy/Grid.py +9 -9
- topologicpy/Plotly.py +2025 -2025
- topologicpy/Shell.py +42 -43
- topologicpy/Speckle.py +1 -1
- topologicpy/Topology.py +99 -88
- topologicpy/Vector.py +36 -36
- topologicpy/Vertex.py +12 -12
- topologicpy/Wire.py +80 -76
- topologicpy/__init__.py +1 -1
- {topologicpy-0.5.3.dist-info → topologicpy-0.5.5.dist-info}/METADATA +2 -2
- {topologicpy-0.5.3.dist-info → topologicpy-0.5.5.dist-info}/RECORD +21 -21
- {topologicpy-0.5.3.dist-info → topologicpy-0.5.5.dist-info}/LICENSE +0 -0
- {topologicpy-0.5.3.dist-info → topologicpy-0.5.5.dist-info}/WHEEL +0 -0
- {topologicpy-0.5.3.dist-info → topologicpy-0.5.5.dist-info}/top_level.txt +0 -0
topologicpy/Grid.py
CHANGED
@@ -56,12 +56,12 @@ class Grid(topologic.Cluster):
|
|
56
56
|
return None
|
57
57
|
if not uOrigin:
|
58
58
|
if not isinstance(face, topologic.Face):
|
59
|
-
uOrigin = Vertex.ByCoordinates(0,0,0)
|
59
|
+
uOrigin = Vertex.ByCoordinates(0, 0, 0)
|
60
60
|
else:
|
61
61
|
uOrigin = Face.VertexByParameters(face, 0, 0)
|
62
62
|
if not vOrigin:
|
63
63
|
if not isinstance(face, topologic.Face):
|
64
|
-
vOrigin = Vertex.ByCoordinates(0,0,0)
|
64
|
+
vOrigin = Vertex.ByCoordinates(0, 0, 0)
|
65
65
|
else:
|
66
66
|
vOrigin = Face.VertexByParameters(face, 0, 0)
|
67
67
|
|
@@ -71,9 +71,9 @@ class Grid(topologic.Cluster):
|
|
71
71
|
v3 = Face.VertexByParameters(face, 0, 0)
|
72
72
|
v4 = Face.VertexByParameters(face, 0, 1)
|
73
73
|
else:
|
74
|
-
v1 = Vertex.ByCoordinates(0,0,0)
|
74
|
+
v1 = Vertex.ByCoordinates(0, 0, 0)
|
75
75
|
v2 = Vertex.ByCoordinates(max(uRange),0,0)
|
76
|
-
v3 = Vertex.ByCoordinates(0,0,0)
|
76
|
+
v3 = Vertex.ByCoordinates(0, 0, 0)
|
77
77
|
v4 = Vertex.ByCoordinates(0,max(vRange),0)
|
78
78
|
|
79
79
|
uVector = [v2.X()-v1.X(), v2.Y()-v1.Y(),v2.Z()-v1.Z()]
|
@@ -224,7 +224,7 @@ class Grid(topologic.Cluster):
|
|
224
224
|
face : topologic.Face , optional
|
225
225
|
The input face. If set to None, the grid will be created on the XY plane. The default is None.
|
226
226
|
origin : topologic.Vertex , optional
|
227
|
-
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). The default is None.
|
227
|
+
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). The default is None.
|
228
228
|
uRange : list , optional
|
229
229
|
A list of distances for the *u* grid lines from the uOrigin. The default is [-0.5,-0.25,0, 0.25,0.5].
|
230
230
|
vRange : list , optional
|
@@ -251,7 +251,7 @@ class Grid(topologic.Cluster):
|
|
251
251
|
return None
|
252
252
|
if not origin:
|
253
253
|
if not isinstance(face, topologic.Face):
|
254
|
-
origin = Vertex.ByCoordinates(0,0,0)
|
254
|
+
origin = Vertex.ByCoordinates(0, 0, 0)
|
255
255
|
else:
|
256
256
|
origin = Face.VertexByParameters(face, 0, 0)
|
257
257
|
|
@@ -261,9 +261,9 @@ class Grid(topologic.Cluster):
|
|
261
261
|
v3 = Face.VertexByParameters(face, 0, 0)
|
262
262
|
v4 = Face.VertexByParameters(face, 0, 1)
|
263
263
|
else:
|
264
|
-
v1 = Vertex.ByCoordinates(0,0,0)
|
264
|
+
v1 = Vertex.ByCoordinates(0, 0, 0)
|
265
265
|
v2 = Vertex.ByCoordinates(max(uRange),0,0)
|
266
|
-
v3 = Vertex.ByCoordinates(0,0,0)
|
266
|
+
v3 = Vertex.ByCoordinates(0, 0, 0)
|
267
267
|
v4 = Vertex.ByCoordinates(0,max(vRange),0)
|
268
268
|
|
269
269
|
uVector = [v2.X()-v1.X(), v2.Y()-v1.Y(),v2.Z()-v1.Z()]
|
@@ -300,7 +300,7 @@ class Grid(topologic.Cluster):
|
|
300
300
|
face : topologic.Face , optional
|
301
301
|
The input face. If set to None, the grid will be created on the XY plane. The default is None.
|
302
302
|
origin : topologic.Vertex , optional
|
303
|
-
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). The default is None.
|
303
|
+
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). The default is None.
|
304
304
|
uRange : list , optional
|
305
305
|
A list of *u* parameters for the *u* grid lines from the uOrigin. The default is [0.0,0.25,0.5,0.75,1.0].
|
306
306
|
vRange : list , optional
|