sshirokov/stltwalker — pull request #3 by sshirokov (2012-12-31 02:19:07+00:00)
Title: Bounds

Bounds checking. Can be specified with the `-L` `-W` and `-H` flags

Bounds checking is always performed, and causes a hard failure when failed. The default bounds are positive infinity in all directions.

Successful bounds checking looks like this

[INFO] (src/stltwalker.c:223) Result dimensions: 199.041199 x 180.102509 x 393.697205 Max: inf x inf x inf
$ echo $?
0

Failed bounds checking looks like this

[ERROR] (src/stltwalker.c:228: errno: None) Bounds check FAILED: Result dimensions: 199.041199 x 180.102509 x 393.697205 Maximum dimensions: 1.000000 x 1.000000 x 1.000000
$ echo $?
255