OptimizeLine

DESCRIPTION

This module optimizes line data represented by many points on a line. The module reduces the number of points, so the data becomes less dense, making it more efficient for saving to file and rendering after conversion to geometry data. Many points are used to represent the line where the radius of curvature is small, and few points are used where the line is straight.

Setting 'Max Angle' specifies the optimization level. If you set a larger value the data becomes less dense, but the accuracy decreases, and vice versa.

If 'Input Data' is supplied, its data is copied to the optimized line data. If it is not supplied, the data portion of the output lattice is filled by the vector component representing the line.

INPUTS

Port: Input Line
Type: Lattice
Constraints: 1-D
Constraints: curvilinear

Points on the line to be optimized. Coordinates of points should be stored as coordinate data of a curvilinear lattice. Data portion is ignored.

Port: Input Data
Type: Lattice
Optional: This port is optional.
Constraints: 1-D

Data portion is copied to optimized line lattice. The size should be same as the 'Input Line' lattice.

Port: Min Angle
Type: Parameter
Optional: This port is optional.

If original line data contains several lines, OptimizeLine detects it automatically. This parameter helps to find the end point and start point of each line. If the resulting line has incorrect connections, you can change the behavior of the module by changing the value of 'Min Angle'. This value should be between 0 and pi. If you set a small value, detection becomes sensitive, so every line segment is considered as an individual.

WIDGETS

Port: Max Angle
Type: Dial

Specify optimization level.

OUTPUTS

Port: Output Line
Type: Lattice
Constraints: 1-D
Constraints: 1..3-vector
Constraints: float
Constraints: curvilinear

Optimized line. Data portion is filled by vector component representing line.

Port: Output Data
Type: Lattice
Constraints: 1-D
Constraints: curvilinear

Optimized line. Data portion is filled by data copied from 'Input Data'.

KNOWN PROBLEMS

Auto detection of end points does not work if the end point of one line is close to start point of the next line.

SEE ALSO

ToSpaceLine


[Documentation Home]