In this dialog, you can configure your own script for ASCII-file interpretation.
Various vendors have different formats on their exported point cloud files. Some files have headers describing the format when it was made etc. There may also be a set of columns having an ID, section number, data set number, etc.
For the triangulation, only the XYZ position of each scanned point is of interest. A script contains a series of operations on the file content to remove unwanted data rows and columns.
Name
A name describing the script. This will also be the filename where the script is stored. Multiple scanner data files may share a script.
Available Script Commands
A single command performs a single operation on the file. This list contains all the available commands that can be used.
- Remove Leading Lines - Removes a given number of lines at the beginning of the file.
- Remove Trailing Lines - Removes a given number of lines at the end of the file.
- Remove Column - Removes a single column.
- Value Separator - The various columns may be separated by a space character, tab, comma, point, etc. This command enables you to select which character should be interpreted as the separator sign.
- Fixed Width Separator - Columns are always a fixed number of characters. This command enables you to set that number.
- Trim Spaces - Trims away leading and trailing spaces after columns are split.
- Swap Columns 1 and 2 - Swaps the places of the two first columns. Usually to swap X and Y coordinates.
Selected Script Commands
As you build your scripts, you will see all your selected commands in this view. This view also gives a short preview of the options you have selected on a command.
Example
You have selected to use the “Remove Leading Lines” command. The Selected Script Command will then display “Remove Leading Lines : 3”. That means that the script will remove the first 3 lines of the file before continuing.
Command Options
This part of the dialog enables you to edit the options on a given selected command.
Preview
This part of the dialog will display a preview of your file content. The preview is updated immediately when changes are done to your script.
- Click OK to save the data and close the dialog.
- Click Cancel to close the dialog without saving the data.