topologicpy 0.8.30__py3-none-any.whl → 0.8.33__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/BVH.py +5 -3
- topologicpy/CSG.py +1 -1
- topologicpy/Cell.py +1105 -12
- topologicpy/CellComplex.py +213 -1
- topologicpy/Cluster.py +4 -2
- topologicpy/Edge.py +61 -28
- topologicpy/Face.py +384 -101
- topologicpy/Graph.py +149 -2
- topologicpy/Plotly.py +0 -1
- topologicpy/ShapeGrammar.py +65 -6
- topologicpy/Topology.py +56 -416
- topologicpy/Vertex.py +1 -1
- topologicpy/Wire.py +95 -45
- topologicpy/version.py +1 -1
- {topologicpy-0.8.30.dist-info → topologicpy-0.8.33.dist-info}/METADATA +1 -1
- {topologicpy-0.8.30.dist-info → topologicpy-0.8.33.dist-info}/RECORD +19 -19
- {topologicpy-0.8.30.dist-info → topologicpy-0.8.33.dist-info}/WHEEL +1 -1
- {topologicpy-0.8.30.dist-info → topologicpy-0.8.33.dist-info}/licenses/LICENSE +0 -0
- {topologicpy-0.8.30.dist-info → topologicpy-0.8.33.dist-info}/top_level.txt +0 -0
topologicpy/BVH.py
CHANGED
@@ -252,7 +252,7 @@ class BVH:
|
|
252
252
|
return clash_detection(bvh, query)
|
253
253
|
|
254
254
|
# Function to recursively add nodes and edges to the TopologicPy Graph
|
255
|
-
def Graph(bvh, tolerance=0.0001):
|
255
|
+
def Graph(bvh, tolerance: float = 0.0001, silent: bool = False):
|
256
256
|
"""
|
257
257
|
Creates a graph from the input bvh tree.
|
258
258
|
|
@@ -262,6 +262,8 @@ class BVH:
|
|
262
262
|
The input BVH Tree.
|
263
263
|
tolerance : float , optional
|
264
264
|
The desired tolerance. The default is 0.0001.
|
265
|
+
silent : bool , optional
|
266
|
+
If set to True, no error and warning messages are printed. Otherwise, they are. The default is False.
|
265
267
|
|
266
268
|
Returns
|
267
269
|
-------
|
@@ -284,8 +286,8 @@ class BVH:
|
|
284
286
|
d = Vertex.Distance(parent_vertex, current_vertex)
|
285
287
|
if d <= tolerance:
|
286
288
|
current_vertex = Topology.Translate(current_vertex, tolerance*random.uniform(2,50), tolerance*random.uniform(2,50), tolerance*random.uniform(2,50))
|
287
|
-
edge = Edge.ByVertices(parent_vertex, current_vertex, tolerance=tolerance)
|
288
|
-
graph = Graph.AddEdge(graph, edge, silent=
|
289
|
+
edge = Edge.ByVertices(parent_vertex, current_vertex, tolerance=tolerance, silent=silent)
|
290
|
+
graph = Graph.AddEdge(graph, edge, silent=silent)
|
289
291
|
|
290
292
|
# Recursively add child nodes
|
291
293
|
if bvh_node.left:
|
topologicpy/CSG.py
CHANGED
@@ -202,7 +202,7 @@ class CSG():
|
|
202
202
|
if not silent:
|
203
203
|
print("CSG.Connect - Error: The input vertexB parameter is not a valid vertex. Returning None.")
|
204
204
|
return None
|
205
|
-
edge = Edge.ByVertices(vertexA, vertexB, tolerance=tolerance)
|
205
|
+
edge = Edge.ByVertices(vertexA, vertexB, tolerance=tolerance, silent=silent)
|
206
206
|
if graph == None:
|
207
207
|
vertices = [vertexA, vertexB]
|
208
208
|
edges = [edge]
|