采样曲线#

采样曲线。

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

Note

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

输入#

曲线

标准的几何图形输入。

数值

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

系数 系数模式

用于确定样品位置的总长度部分。

长度 长度模式

用于确定在采样之前沿着曲线行进多远的长度(以距离为单位)。

曲线编号

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和样条长度之间。

所有曲线

采样长度将基于所有曲线的全长,而非使用每个选定曲线的长度。

输出#

数值

输入项在采样点处的对应值。

位置

样品沿样条的位置。

切向(正切)

采样处的已规格化 曲线切向

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.

法向

采样处的已规格化 曲线法线

示例#

../../../../_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.