您在这里: 点云 点云表达式评估器

点云表达式评估器

计算表达式,such as algebraic operations or conditional statements,to set point cloud component values.

输入端口

输出端口

参数

Expression Syntax

表达式由操作数组合而成,操作员,和括号。例如,一个简单的表达式可能是:

(@component(x)+@component(y)+@component(z))/3.0

此表达式计算X的平均值,y,和Z分量。

操作数之间可以使用空格,操作员,and parentheses as it is ignored by the expression processor.

类型和溢出

This transformer attempts to avoid overflows by changing data types through the course of evaluating an expression.例如,如果将两个uint8值相加,内部计算将使用uint16类型进行;这将确保不会溢出。

In general,对整数类型执行算术运算将生成整数类型。除法是一个例外:它总是产生一个浮点结果。Performing an arithmetic operation on floating-point types will always produce a floating-point type.

注意,在不同数据类型之间转换时,a Bounded Cast is used.As a result,when a calculated value does not fit in the destination data type,the corresponding destination value will either be set to the minimum or maximum value possible in the destination data type.

编辑变压器参数

Using a set of menu options,可以通过引用工作区中的其他元素来指定变压器参数。更高级的功能,such as an advanced editor and an arithmetic editor,在一些变压器中也有。To access a menu of these options,click在适用参数旁边。更多信息,看见变压器参数菜单选项.

变压器类别

点云

FME Licensing Level

FME Professional edition and above

FME知识中心搜索:

Search for samples and information about this transformer on theFME知识中心.