From a2a19494a4a59e21c91cc85ca37084f61dbf65c7 Mon Sep 17 00:00:00 2001 From: mkazhdan Date: Tue, 31 Jul 2018 14:26:54 -0400 Subject: [PATCH] Modified support for double precision. --- Src/PoissonRecon.cpp | 8 ++++---- Src/SSDRecon.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Src/PoissonRecon.cpp b/Src/PoissonRecon.cpp index ccc1717..2329f83 100644 --- a/Src/PoissonRecon.cpp +++ b/Src/PoissonRecon.cpp @@ -715,12 +715,12 @@ int main( int argc , char* argv[] ) typedef IsotropicUIntPack< DIMENSION , FEMDegreeAndBType< Degree , BType >::Signature > FEMSigs; fprintf( stderr , "[WARNING] Compiled for degree-%d, boundary-%s, %s-precision _only_\n" , Degree , BoundaryNames[ BType ] , sizeof(Real)==4 ? "single" : "double" ); if( !PointWeight.set ) PointWeight.value = DefaultPointWeightMultiplier*Degree; - if( Colors.set ) Execute< DefaultFloatType , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() ); - else Execute< DefaultFloatType >( argc , argv , FEMSigs() ); + if( Colors.set ) Execute< Real , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() ); + else Execute< Real >( argc , argv , FEMSigs() ); #else // !FAST_COMPILE if( !PointWeight.set ) PointWeight.value = DefaultPointWeightMultiplier*Degree.value; - if( Colors.set ) Execute< DIMENSION , float , PointStreamColor< float > >( argc , argv ); - else Execute< DIMENSION , float >( argc , argv ); + if( Colors.set ) Execute< DIMENSION , Real , PointStreamColor< float > >( argc , argv ); + else Execute< DIMENSION , Real >( argc , argv ); #endif // FAST_COMPILE if( Performance.set ) { diff --git a/Src/SSDRecon.cpp b/Src/SSDRecon.cpp index 35629cc..fe25aa5 100644 --- a/Src/SSDRecon.cpp +++ b/Src/SSDRecon.cpp @@ -717,11 +717,11 @@ int main( int argc , char* argv[] ) static const BoundaryType BType = DEFAULT_FEM_BOUNDARY; typedef IsotropicUIntPack< DIMENSION , FEMDegreeAndBType< Degree , BType >::Signature > FEMSigs; fprintf( stderr , "[WARNING] Compiled for degree-%d, boundary-%s, %s-precision _only_\n" , Degree , BoundaryNames[ BType ] , sizeof(Real)==4 ? "single" : "double" ); - if( Colors.set ) Execute< DefaultFloatType , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() ); - else Execute< DefaultFloatType >( argc , argv , FEMSigs() ); + if( Colors.set ) Execute< Real , PointStreamColor< DefaultFloatType > >( argc , argv , FEMSigs() ); + else Execute< Real >( argc , argv , FEMSigs() ); #else // !FAST_COMPILE - if( Colors.set ) Execute< DIMENSION , float , PointStreamColor< float > >( argc , argv ); - else Execute< DIMENSION , float >( argc , argv ); + if( Colors.set ) Execute< DIMENSION , Real , PointStreamColor< float > >( argc , argv ); + else Execute< DIMENSION , Real >( argc , argv ); #endif // FAST_COMPILE if( Performance.set ) {