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