| genre | WEMProcessing |
| status | stable |
| authors | Bart De Dobbelaer, Olaf Konrad |
| package | MeVisLab/Standard |
| dll | MLWEMModules |
| definition | MLWEMModules.def |
| see also | WEMImageData, SoWEMRenderer |
The module WEMSurfaceDistance calculates the minimal distances of the nodes of one WEM to the nodes of another WEM.
These distances are stored in the nodes' WEMPrimitveValueList entries of the output WEM for a later LUT coloring or for further analysis.
Connect to WEM surfaces into the module's inputs and connect the output to a renderer. Use the Min. Dist. and Max. Dist. values of the statistics section for LUT range adjustment.
The nodes' positions of the first input WEM are stored internally in a spherical space tree, which is build in O(n*log(n)), with n being the number of nodes. Then, this space tree is used to find the minimum distances to all node of the second input WEM. These obtained distances are stored in the according WEMPrimitiveValueList of the nodes of the output WEM.
Note that distances may be negative; if so, the second surface is under the first one, regarding the surface normal direction.
The module also outputs the positions of the nodes with the overall minimal distance.
| addEdgesToNearestNodes: Bool | isProcessing: Bool | removePreviousWEMs: Bool |
| autoClear: Bool | listenToFinishNotifications: Bool | show: Bool |
| Compute signed distances: Bool | Max. Dist.: Float | Start Pos.: Vector3 |
| Custom Value List: String | Max. Norm.: Float | triangulationMode: Enum |
| editable: Bool | Min. Dist.: Float | Use default value list: Bool |
| elapsedTime: Float | Min. Norm.: Float | useFaceDiffuseColor: Bool |
| End Pos.: Vector3 | Normalize distances: Bool | useInputWEMToCreateOutputWEM: Bool |
| forwardRepaintNotifications: Bool | numEntries: Integer | usePolygonOffset: Bool |
| forwardSelectionNotifications: Bool | progress: Float | |
| id: Integer | relativeError: Float |
If checked, the distances are signed, reflecting the spacial configuration of the surfaces (below / over). If unchecked, only the distances' magnitudes are stored in the nodes' WEMPrimitiveValueList.
Shows the minimum minimal distances of nodes of the two input WEMs.
Shows the maximum minimal distances of nodes of the two input WEMs.
Shows the normalized minimum minimal distances of nodes of the two input WEMs.
Shows the normalized maximum minimal distances of nodes of the two input WEMs.
If checked, all distances range in [0..1] or in [-1..1] (if signed distances are used), where 1 denotes the largest minimal distance. This option is useful if always the same (relative) LUT should be used.
Shows the position of the node of the first WEM with the overall minimum distance.
Shows the position of the node of the second WEM with the overall minimum distance.