Открыть боковую панель
nikitronn
sverchok
Коммиты
c89b7f3f
Коммит
c89b7f3f
создал
Июн 28, 2021
по автору
Ilya Portnov
Просмотр файлов
Fixes.
владелец
e4a9d3ba
Изменения
3
Скрыть пробелы
Построчно
Рядом
nodes/curve/intersect_curves.py
Просмотр файла @
c89b7f3f
...
...
@@ -12,7 +12,7 @@ from mathutils import Vector
from
bpy.props
import
FloatProperty
,
EnumProperty
,
BoolProperty
,
IntProperty
from
sverchok.node_tree
import
SverchCustomTreeNode
from
sverchok.data_structure
import
updateNode
,
zip_long_repeat
,
ensure_nesting_level
,
split_by_count
from
sverchok.data_structure
import
updateNode
,
zip_long_repeat
,
ensure_nesting_level
,
split_by_count
,
transpose_list
from
sverchok.utils.curve
import
SvCurve
from
sverchok.utils.curve.nurbs
import
SvNurbsCurve
from
sverchok.utils.curve.nurbs_algorithms
import
intersect_nurbs_curves
...
...
@@ -201,6 +201,7 @@ class SvIntersectNurbsCurvesNode(bpy.types.Node, SverchCustomTreeNode):
n
=
len
(
curve1s
)
new_points
=
split_by_count
(
new_points
,
n
)
new_t1
=
split_by_count
(
new_t1
,
n
)
new_t1
=
transpose_list
(
new_t1
)
new_t2
=
split_by_count
(
new_t2
,
n
)
points_out
.
append
(
new_points
)
...
...
nodes/surface/gordon_surface.py
Просмотр файла @
c89b7f3f
...
...
@@ -46,7 +46,8 @@ class SvGordonSurfaceNode(bpy.types.Node, SverchCustomTreeNode):
layout
.
prop
(
self
,
'explicit_t_values'
)
def
draw_buttons_ext
(
self
,
context
,
layout
):
layout
.
prop
(
self
,
'metric'
)
if
not
self
.
explicit_t_values
:
layout
.
prop
(
self
,
'metric'
)
def
sv_init
(
self
,
context
):
self
.
inputs
.
new
(
'SvCurveSocket'
,
"CurvesU"
)
...
...
utils/surface/gordon.py
Просмотр файла @
c89b7f3f
...
...
@@ -17,7 +17,7 @@ from sverchok.data_structure import repeat_last_for_length
def
reparametrize_by_segments
(
curve
,
t_values
):
t_min
,
t_max
=
curve
.
get_u_bounds
()
print
(
f
"Reparametrize:
{
t_min
}
-
{
t_max
}
:
{
t_values
}
"
)
#
print(f"Reparametrize: {t_min} - {t_max}: {t_values}")
#t_values = [t_min] + t_values + [t_max]
segments
=
[]
...
...
@@ -86,3 +86,4 @@ def gordon_surface(u_curves, v_curves, intersections, metric='POINTS', u_knots=N
#print(f"Result: {surface}")
return
lofted_u
,
lofted_v
,
interpolated
,
surface
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать