precision.h
Go to the documentation of this file.
00001 #ifndef __VCGLIB_PRECISION
00002 #define __VCGLIB_PRECISION
00003 
00004 namespace vcg
00005 {
00006         namespace tri
00007         {
00008                 namespace io
00009                 {
00010                         template<typename SCALAR>
00011                         struct Precision
00012                         {
00013                                 static int digits() {return 0;}
00014                 static const char* typeName() {return "";}
00015                         };
00016                         
00017                         template<>
00018                         struct Precision<float>
00019                         {
00020                                 static int digits() {return 7;}
00021                 static const char* typeName() {return "float";}
00022 
00023                         };
00024                         
00025                         template<>
00026                         struct Precision<double>
00027                         {
00028                                 static int digits() {return 16;}
00029                 static const char* typeName() {return "double";}
00030                         };
00031                 }
00032         }
00033 }
00034 
00035 
00036 #endif


shape_reconstruction
Author(s): Roberto Martín-Martín
autogenerated on Sat Jun 8 2019 18:34:40