Коммит 6d0941c0 создал по автору Ilya Portnov's avatar Ilya Portnov
Просмотр файлов

Exception handling.

владелец 9129e1a9
......@@ -79,7 +79,7 @@ def curves_to_face(sv_curves, planar=True, force_nurbs=True, tolerance=None):
if planar:
try:
fc_face = Part.Face(wire)
except Part.OCCError as e:
except Exception as e:
raise Exception(f"Can't create a Face from {sv_curves}: {e}\nProbably these curves are not all lying in the same plane?")
surface = SvSolidFaceSurface(fc_face)
else:
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать