采样曲线
样品曲线 计算曲线上与曲线起始点相距一定距离的点,该点由长度或因子输入指定。它还输出从曲线上的该位置检索到的数据。采样值从采样点的每一侧处的评估的曲线点处的值线性内插。
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和样条长度之间。
- 所有曲线
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.
示例
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.