topologicpy 0.7.65__py3-none-any.whl → 0.7.66__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/Face.py +4 -2
- topologicpy/Graph.py +941 -1125
- topologicpy/Shell.py +1 -1
- topologicpy/Topology.py +2 -2
- topologicpy/Wire.py +13 -6
- topologicpy/__init__.py +3 -0
- topologicpy/version.py +1 -1
- {topologicpy-0.7.65.dist-info → topologicpy-0.7.66.dist-info}/METADATA +1 -1
- {topologicpy-0.7.65.dist-info → topologicpy-0.7.66.dist-info}/RECORD +12 -12
- {topologicpy-0.7.65.dist-info → topologicpy-0.7.66.dist-info}/WHEEL +1 -1
- {topologicpy-0.7.65.dist-info → topologicpy-0.7.66.dist-info}/LICENSE +0 -0
- {topologicpy-0.7.65.dist-info → topologicpy-0.7.66.dist-info}/top_level.txt +0 -0
topologicpy/Face.py
CHANGED
@@ -2277,7 +2277,7 @@ class Face():
|
|
2277
2277
|
return Face.ByWires(eb, ibList)
|
2278
2278
|
|
2279
2279
|
@staticmethod
|
2280
|
-
def Skeleton(face, tolerance=0.001):
|
2280
|
+
def Skeleton(face, boundary: bool = True, tolerance: float = 0.001):
|
2281
2281
|
"""
|
2282
2282
|
Creates a straight skeleton. This method is contributed by 高熙鹏 xipeng gao <gaoxipeng1998@gmail.com>
|
2283
2283
|
This algorithm depends on the polyskel code which is included in the library. Polyskel code is found at: https://github.com/Botffy/polyskel
|
@@ -2286,6 +2286,8 @@ class Face():
|
|
2286
2286
|
----------
|
2287
2287
|
face : topologic_core.Face
|
2288
2288
|
The input face.
|
2289
|
+
boundary : bool , optional
|
2290
|
+
If set to True the original boundary is returned as part of the roof. Otherwise it is not. The default is True.
|
2289
2291
|
tolerance : float , optional
|
2290
2292
|
The desired tolerance. The default is 0.001. (This is set to a larger number than the usual 0.0001 as it was found to work better)
|
2291
2293
|
|
@@ -2301,7 +2303,7 @@ class Face():
|
|
2301
2303
|
if not Topology.IsInstance(face, "Face"):
|
2302
2304
|
print("Face.Skeleton - Error: The input face is not a valid topologic face. Returning None.")
|
2303
2305
|
return None
|
2304
|
-
return Wire.Skeleton(face, tolerance=tolerance)
|
2306
|
+
return Wire.Skeleton(face, boundary=boundary, tolerance=tolerance)
|
2305
2307
|
|
2306
2308
|
@staticmethod
|
2307
2309
|
def Square(origin= None, size: float = 1.0, direction: list = [0, 0, 1], placement: str = "center", tolerance: float = 0.0001):
|