PointCloudExpressionEvaluator

Evaluates expressions, such as algebraic operations or conditional statements, to set point cloud component values.

Input Ports

Output Ports

Parameters

Expression Syntax

An expression consists of a combination of operands, operators, and parentheses. For example, a simple expression might be:

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

This expression calculates the average of the x, y, and z components.

White space may be used between the operands, operators, and parentheses as it is ignored by the expression processor.

Types and Overflows

This transformer attempts to avoid overflows by changing data types through the course of evaluating an expression. For example, if two UInt8 values are added together, the internal computations will be performed with a UInt16 type; this ensures that no overflow will occur.

In general, performing an arithmetic operation on integer types will produce an integer type. The exception to this is division: it will always produce a floating-point result. Performing an arithmetic operation on floating-point types will always produce a floating-point type.

Note that when converting between different data types, 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.

Editing Transformer Parameters

Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click beside the applicable parameter. For more information, see Transformer Parameter Menu Options.

Transformer Categories

Calculated Values

Point Clouds

FME Licensing Level

FME Professional edition and above

Technical History

Associated FME function or factory: PointCloudEvaluationFactory

Search FME Community

Search for samples and information about this transformer on the FME Community.