Открыть боковую панель
nikitronn
sverchok
Коммиты
4f3a5a0b
Не подтверждена
Коммит
4f3a5a0b
создал
Сен 11, 2021
по автору
Dealga McArdle
Зафиксировано автором
GitHub
Сен 11, 2021
Просмотр файлов
correct return values of calc_mesh_normals (#4348)
владелец
69e35999
Изменения
1
Скрыть пробелы
Построчно
Рядом
old_nodes/mesh_select.py
Просмотр файла @
4f3a5a0b
...
...
@@ -137,7 +137,7 @@ class SvMeshSelectNode(bpy.types.Node, SverchCustomTreeNode):
return
result
def
by_normal
(
self
,
vertices
,
edges
,
faces
):
vertex
_normals
,
face
_normals
=
calc_mesh_normals
(
vertices
,
faces
)
face
_normals
,
vertex
_normals
=
calc_mesh_normals
(
vertices
,
faces
)
percent
=
self
.
inputs
[
'Percent'
].
sv_get
(
default
=
[
1.0
])[
0
][
0
]
direction
=
self
.
inputs
[
'Direction'
].
sv_get
()[
0
][
0
]
values
=
[
Vector
(
n
).
dot
(
direction
)
for
n
in
face_normals
]
...
...
@@ -249,7 +249,7 @@ class SvMeshSelectNode(bpy.types.Node, SverchCustomTreeNode):
return
out_verts_mask
,
out_edges_mask
,
out_faces_mask
def
by_outside
(
self
,
vertices
,
edges
,
faces
):
vertex
_normals
,
face
_normals
=
calc_mesh_normals
(
vertices
,
edges
,
faces
)
face
_normals
,
vertex
_normals
=
calc_mesh_normals
(
vertices
,
faces
)
percent
=
self
.
inputs
[
'Percent'
].
sv_get
(
default
=
[
1.0
])[
0
][
0
]
center
=
self
.
inputs
[
'Center'
].
sv_get
()[
0
][
0
]
center
=
Vector
(
center
)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать