Коммит c89b7f3f создал по автору Ilya Portnov's avatar Ilya Portnov
Просмотр файлов

Fixes.

владелец e4a9d3ba
......@@ -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)
......
......@@ -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")
......
......@@ -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.
Сначала завершите редактирование этого сообщения!
Пожалуйста, зарегистрируйтесь или чтобы прокомментировать