Узел Sample Curve#

Узел Sample Curve.

Этот узел вычисляет точку на кривой на определённом расстоянии от начала кривой, определяемом входными параметрами длины или коэффициента. Он также выводит данные, извлеченные из этого положения на кривой. Значения выборки линейно интерполируются из значений в оценённых точках кривой с каждой стороны от точки выборки.

Примечание

Когда кривая содержит несколько сплайнов, положение выборки определяется на основе общей накопленной длины, включая длины всех предыдущих сплайнов. Порядок сплайнов такой же, как в редакторе электронных таблиц.

Входы#

Curves

Cтандартный вход геометрии с компонентом кривой.

Value

A field input to evaluate custom attributes. The evaluation is outputted through the Value output.

Factor Factor mode

Часть общей длины, используемая для определения положения образца.

Length Length mode

Длина в единицах расстояния, используемая для определения того, как далеко нужно пройти по кривой перед выборкой.

Curve Index

An index to only evaluate specific splines, these indices can be specified manually or from the Узел Index. This input is ignored when the All Curves property is enabled.

Свойства#

Тип данных

The data type used for the evaluated data.

Mode

How to find endpoint positions for the trimmed spline. The option acts the same as it does in the Узел Trim Curve.

Factor:

Находит положения конечных точек, используя коэффициент длины каждого сплайна. Входные значения должны быть между 0 или 1.

Length:

Находит положения конечных точек, используя длину от начала каждого сплайна. Входные значения должны быть между 0 и длиной сплайнов.

All Curves

Sample lengths based on the total length of all curves, rather than using a length inside each selected curve.

Выходы#

Value

The value of the input Value at the sample point.

Position (положение)

Положение образца вдоль сплайна.

Tangent

The normalized curve tangent at the sample.

Совет

This output can be combined with the Узел Align Euler to Vector to create a rotation that lines up with direction of the curve. Including the Normal output in a second align node after can align the other rotation axis.

Нормаль

The normalized curve normal at the sample.

Примеры#

../../../../_images/modeling_geometry-nodes_curve_sample-curve_example.png

Here, the Count mode of the Узел Resample Curve is recreated, except a mesh is used for the result instead of a curve. The Z axis of the position can be used as the sample factor because the position is between zero and one for the entire line.