Overview | All Modules | Tutorial | User's Guide | Programming Guide

COVISE Online Documentation


Module category: Filter



LineReduce

LineReduce replaces a straight line built up of several segments by one line segment and thus reduces the amount of data. Two neighboring line-segments are recognized as parallel if their mutual angle (modulo pi ) is smaller than a given limit.

LineReduce_icon.png

LineReduce is available in COVISE version 4.5 and higher. The module is tested on SGI and Linux systems.

Parameters

Name Type Description
maxAngle Scalar Threshold below which two line-segments are recognized as parallel.
maxDifference Scalar maximum difference between two points.

Input Ports

Name Type Description
requiredlinesIn Lines Line-segments to be reduced
optionaldataIn Vec3
Float
Either vector or scalar data on the lines.

Output Ports

Name Type Description

outputlinesOut

Lines Reduced line-segments
dependdataOut Vec3
Float
-

Examples

The following pipeline shows a simple example for the use of LineReduce. The feature-lines produced by DomainSurface consists of 1472 line-segments. LineReduce collapses the feature-lines to 19 Line-segments (as documented in the information about the data objects - last figure).

Figure: covise/net/examples/LineReduce.net
LineReduce_map.png

Figure: Image produced by the pipeline shown above.
LineReduce_out.png

Figure: Comparison of the data structures produced by DomainSurface (left) and LineReduce (right). LineReduce diminished the number of lines from 1472 to 19.
LineReduce_datacomp.png

The next example shows you the result if color data is provided. With the parameter maxDifference it is possible to regulate which points should be shown. If the difference of data values at neigbour points is greater than maxDifference, LineReduce doesn't remove these points.

Figure: covise/net/examples/LineReduceColor.net
LineReduce_mapNew.png

Figure: Image produced by the pipeline shown above.
LineReduce_Renderer.png

Figure: parameters which can be set.
LineReduce_parameter.png


Authors: Martin Aumüller, Ruth Lang, Daniela Rainer, Jürgen Schulze-Döbold, Andreas Werner, Peter Wolf, Uwe Wössner
Copyright © 1993-2022 HLRS, 2004-2014 RRZK, 2005-2014 Visenso
COVISE Version 2021.12