prevnext   » SZS: Wiimms SZS Toolset » wkclt: Wiimms KCL Tool » wkclt check

wkclt check

Read the entered KCL files (text or binary) and and make a plausibility check. Hints and warnings are written to standard output. The exit status is 'DIFFER' if at least one KMP warning found.

Contents

1.   Syntax

wkclt CHECK source...

2.   Options

Options
Option Param Description
--color Force colorized text. This is the default, if an output file is a terminal. But colorized text is only supported for a few messages.

If a command is prefixed by 'C-', then this option is set automatically.

--no-color Deactive colorized text. This is the default, if an output file is not a terminal.
-B --brief Print only warnings and suppress hints.
-l --long Be verbose and print more statistics.
-q --quiet Be quiet until the first warning or hint is found.
--no-echo Suppress output of @ECHO commands while scanning text files.
-N --no-check Do not make plausibility checks for KCL files.
-i --ignore Ignore non existing source files without warning.

3.   Description

For each valid input file (KCL, binary or object/text), a plausibility check is done. Archives are searched for sub file course.kcl. To understand what the check can do, you must know how the tools are read the files.

3.1   Mouth and Stomach

The naming Mouth and Stomach was created by Donald Knuth in his TeX Book. It should explain, how the data is read.

If opening a file, the data comes first into the mouth. The mouth will convert the incoming data to an internal dynamic data structure. First, the file type is analyzed. If it is a KCL text file, a parser environment is setup and the file is scanned. Binary KCL file are scanned directly with some validity checks. Errors in the mouth phase are always printed as warnings with a leading '!'. These errors are of kind syntax error.

After reading, the data comes into the stomach and is ready for checking, transforming and output, whatever the user want. And this means, that the KCL plausibility check sees only the fixed data and can only do some semantic checks.

3.2   List of tests

The following tests are done:

List of tests
Type Description
INFO The SZS Tools will write a signature if creating a new KCL. If this signature is found, it is printed.
HINT The number of face down triangles is printed. These are all triangels with a negative normal.
HINT The number of face down triangles with an angle >30° is printed. The number here is included in hint above.
HINT The number of obsolete triangles is printed. Obsolete triangels are not referenced by the octree and not seen by the game.
HINT The number of triangles with extreme values is printed. Extreme means, that the triangels are very very huge or very very thin.
WARN The number of triangles with invalid values is printed. This happens, if a vertex or normal in not a valid number, or if the length of a triangle is zero.
WARN The number of invalid triangle references is printed. This happens, if a the octree section links to a non existing triangle.