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

Add a check.

владелец 73cd215c
......@@ -36,6 +36,11 @@ def gordon_surface(u_curves, v_curves, intersections, metric='POINTS', u_knots=N
if (u_knots is None) != (v_knots is None):
raise Exception("u_knots and v_knots must be either both provided or both omited")
if any(c.is_rational() for c in u_curves):
raise Exception("Some of U-curves are rational. Rational curves are not supported for Gordon surface.")
if any(c.is_rational() for c in v_curves):
raise Exception("Some of V-curves are rational. Rational curves are not supported for Gordon surface.")
intersections = np.array(intersections)
if u_knots is not None:
......
Поддерживает Markdown
0% или .
You are about to add 0 people to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать