openscad/openscad — pull request #186 by donbright (2012-08-21 01:18:14+00:00)
Title: Issue185

fix issue #185 crash bug reported by Nop Head, by detecting NaN and Infinity in CGAL transformation matrices and removing the object from the tree if so. This is the same strategy used as when the user attempts to scale by '0' (remove the object).

It uses boost's floating point detectors to look at the number types.

It detects rotate([1/0,0,0]) as a "nan" (not 'infinity') due to unknown factors which i assume to be related to parsing/eval/Value/etc.

Test is included and 100% of -C All tests pass with this patch.