open all | close all

Index Array From String

字符串索引数组

Basic 基础Inputs 投入Outputs 产出

Index Array From String

字符串索引数组

In some cases you might want to save only a few values in a given Array. For example, if you have a selection of only a few points, edges or polygons of which only a few indices are known. For this purpose, the respective values can simply be entered into a text field and separated using a comma, and the Node will use this data to automatically generate an Array. This can, for example, be linked directly to a Selection input in order to restrict modeling commands to individual elements of a given geometry.

在某些情况下,您可能只希望在给定的 Array 中保存少量值。例如,如果只有几个点、边或多边形的选择,其中只有几个索引是已知的。为此,可以简单地将各个值输入到文本字段中,并使用逗号分隔,Node 将使用这些数据自动生成一个 Array。例如,这可以直接链接到 Selection 输入,以便将建模命令限制为给定几何图形的单个元素。

Whenever individual Arrays are needed, e.g., for defining a selection, the Index Array From String Node can be used. Here you can also work with abbreviations to output coherent indices as Arrays. 每当需要单独的数组时,例如,为了定义选择,可以使用来自字符串的索引数组节点。在这里,您还可以使用缩写作为数组输出一致的索引