Открыть боковую панель
nikitronn
sverchok
Коммиты
13d6bcc0
Коммит
13d6bcc0
создал
Дек 06, 2020
по автору
Ilya Portnov
Просмотр файлов
Cyclic bugfix.
владелец
798bad79
Изменения
1
Скрыть пробелы
Построчно
Рядом
utils/curve/splprep.py
Просмотр файла @
13d6bcc0
...
...
@@ -24,9 +24,10 @@ def scipy_nurbs_approximate(points, weights=None, metric='DISTANCE', degree=3, f
if
weights
is
not
None
:
weights
=
np
.
r_
[
weights
[
good
],
weights
[
-
1
]]
if
is_cyclic
:
points
=
np
.
vstack
((
points
,
points
[
0
]))
if
weights
is
not
None
:
weights
=
np
.
insert
(
weights
,
-
1
,
weights
[
0
])
if
(
points
[
0
]
!=
points
[
-
1
]).
any
():
points
=
np
.
vstack
((
points
,
points
[
0
]))
if
weights
is
not
None
:
weights
=
np
.
insert
(
weights
,
-
1
,
weights
[
0
])
points_orig
=
points
points
=
points
.
T
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать