
Node Properties
节点属性
方程式

The Formula node outputs the result of a mathematical formula. Enter the formula on the Attribute Manager’s Node page. The node’s inputs and outputs are set to the data type Real. You can integrate as many variables as you wish in the formula. Create an input for each variable and represent the variables in the formula by entering $ followed by the variable’s port number. For example, the formula 2*$1+$2 means multiply the value at port 1 by the number two, then add the result to the value at port 2.
公式节点输出一个数学公式的结果。在属性管理器的节点页上输入公式。节点的输入和输出设置为数据类型 Real。你可以在公式中集成任意多的变量。为每个变量创建一个输入,并通过输入 $后跟变量的端口号来表示公式中的变量。例如,公式2 * $1 + $2意味着将端口1的值乘以数字2,然后将结果加到端口2的值上。
A llst with possible formulas can be found here.
在这里可以找到一个包含可能公式的列表。
使用端口名称
You can also use the port names as placeholders for values in your formula. To do this, activate the Use Portnames option. You can then enter the names Value1, Value2, etc. in place of the values of the respective formula input ports.
您还可以使用端口名作为公式中值的占位符。要做到这一点,激活使用 Portnames 选项。然后,您可以输入名称 Value1、 Value2等来代替各个公式输入端口的值。
角度类型
Use this setting to define the type of angle to be used when working with angles within your formula. Use degree when working with angles between 0° and 360° (for complete circles); use radians when working with arcs between 0° and 2°Pl.
使用此设置可定义使用公式中的角度时所使用的角度类型。在0 ° 和360 ° 之间的角度工作时使用度(对于完整的圆) ; 在0 ° 和2 ° Pl 之间的弧度工作时使用弧度。