曲线句柄位置节点

曲线句柄位置节点

样品曲线 计算曲线上与曲线起始点相距一定距离的点,该点由长度或因子输入指定。它还输出从曲线上的该位置检索到的数据。采样值从采样点的每一侧处的评估的曲线点处的值线性内插。

Note

当曲线包含多个样条时,基于总累积长度(包括所有先前样条的长度)查找样品位置。样条的顺序与 电子表格编辑器 中显示的顺序相同。

输入

曲线

标准的几何图形输入。

输入

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 索引节点的字段. This input is ignored when the All Curves property is enabled.

属性

数据类型

数据类型 用于评估的数据。

模式

How to find endpoint positions for the trimmed spline. The option acts the same as it does in the 修剪.

系数

使用每个样条长度的因子查找端点位置。输入值应介于0或1之间。

长度

使用从每个样条开始的长度查找端点位置。输入值应介于0和样条长度之间。

All Curves

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

输出

数值

The value of the input Value at the sample point.

位置

样品沿样条的位置。

切向(正切)

The normalized curve tangent at the sample.

Tip

This output can be combined with the 将欧拉与矢量节点对齐 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 圆角曲线节点。 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.