Открыть боковую панель
nikitronn
sverchok
Коммиты
6e8753bf
Не подтверждена
Коммит
6e8753bf
создал
Май 19, 2022
по автору
Dealga McArdle
Зафиксировано автором
GitHub
Май 19, 2022
Просмотр файлов
make 3pt available (#4479)
владелец
6679e694
Изменения
1
Скрыть пробелы
Построчно
Рядом
utils/geom.py
Просмотр файла @
6e8753bf
...
@@ -206,7 +206,12 @@ class CubicSpline(Spline):
...
@@ -206,7 +206,12 @@ class CubicSpline(Spline):
if
is_cyclic
:
if
is_cyclic
:
#print(describe_data_shape(vertices))
#print(describe_data_shape(vertices))
locs
=
np
.
array
(
vertices
[
-
4
:]
+
vertices
+
vertices
[:
4
])
if
len
(
vertices
)
==
3
:
va
,
vb
,
vc
=
vertices
[
0
],
vertices
[
1
],
vertices
[
2
]
locs
=
np
.
array
([
vc
,
va
,
vb
,
vc
,
va
,
vb
,
vc
,
va
,
vb
,
vc
,
va
])
else
:
locs
=
np
.
array
(
vertices
[
-
4
:]
+
vertices
+
vertices
[:
4
])
if
tknots
is
None
:
if
tknots
is
None
:
if
metric
is
None
:
if
metric
is
None
:
raise
Exception
(
"CubicSpline: either tknots or metric must be specified"
)
raise
Exception
(
"CubicSpline: either tknots or metric must be specified"
)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать