From adca0d032efed26eb710a78619c1d98065166f90 Mon Sep 17 00:00:00 2001 From: granzuglia Date: Mon, 6 Oct 2014 08:27:24 +0000 Subject: [PATCH] - added precision.h file --- wrap/io_trimesh/precision.h | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 wrap/io_trimesh/precision.h diff --git a/wrap/io_trimesh/precision.h b/wrap/io_trimesh/precision.h new file mode 100644 index 00000000..a315d4a9 --- /dev/null +++ b/wrap/io_trimesh/precision.h @@ -0,0 +1,32 @@ +#ifndef __VCGLIB_PRECISION +#define __VCGLIB_PRECISION + +namespace vcg +{ + namespace tri + { + namespace io + { + template + struct Precision + {}; + + template<> + struct Precision + { + static int digits() {return 7;} + static const char* typeName() {return "float";} + }; + + template<> + struct Precision + { + static int digits() {return 16;} + static const char* typeName() {return "double";} + }; + } + } +} + + +#endif \ No newline at end of file