error handling around dxf_cross; function signatures
openscad crashes when dxf_cross gets called with an invalid file name or
no file name at all.
i suppose there should be some errorhandling around src/dxfdim.cc:147,
or something else should take care of such things:
> Qt has caught an exception thrown from an event handler. Throwing
> exceptions from an event handler is not supported in Qt. You must
> reimplement QApplication::notify() and catch all exceptions there.
> terminate called after throwing an instance of
> 'boost::filesystem3::filesystem_error' what():
> boost::filesystem::file_size: No such file or directory
by the way, there was some confusion about the arguments to dxf_cross in
the wiki (and probably will still be until someone signs off the latest
is there any way we might get openscad function signatures out of the
source code? it seems there isn't as of now; the only ideas i have about
* dangerous regular expressions to pseudoparse the source code
(looking for Builtins::init for the function names and argnames loops
/ if statements for the arguments)
* adding doxygen-style comments or similar to every declaration of an
(lots of work too).
the current situation (documentation very far from the code) seems to
make it very easy for problems to come up.