Открыть боковую панель
nikitronn
sverchok
Коммиты
2dda048b
Коммит
2dda048b
создал
Июн 29, 2021
по автору
Ilya Portnov
Просмотр файлов
Add a check.
владелец
73cd215c
Изменения
1
Скрыть пробелы
Построчно
Рядом
utils/surface/gordon.py
Просмотр файла @
2dda048b
...
...
@@ -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.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать