topologicpy 0.8.58__py3-none-any.whl → 0.8.61__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 CHANGED
@@ -226,7 +226,7 @@ class Cell():
226
226
  return new_cell
227
227
 
228
228
  @staticmethod
229
- def ByShell(shell, planarize: bool = False, tolerance: float = 0.0001):
229
+ def ByShell(shell, planarize: bool = False, tolerance: float = 0.0001, silent: bool = False):
230
230
  """
231
231
  Creates a cell from the input shell.
232
232
 
@@ -238,6 +238,8 @@ class Cell():
238
238
  If set to True, the input faces of the input shell are planarized before building the cell. Otherwise, they are not. Default is False.
239
239
  tolerance : float , optional
240
240
  The desired tolerance. Default is 0.0001.
241
+ silent : bool , optional
242
+ If set to True, error and warning messages are suppressed. Default is False.
241
243
 
242
244
  Returns
243
245
  -------
@@ -248,7 +250,8 @@ class Cell():
248
250
  from topologicpy.Topology import Topology
249
251
 
250
252
  if not Topology.IsInstance(shell, "Shell"):
251
- print("Cell.ByShell - Error: The input shell parameter is not a valid topologic shell. Returning None.")
253
+ if not silent:
254
+ print("Cell.ByShell - Error: The input shell parameter is not a valid topologic shell. Returning None.")
252
255
  return None
253
256
  faces = Topology.SubTopologies(shell, subTopologyType="face")
254
257
  return Cell.ByFaces(faces, planarize=planarize, tolerance=tolerance)