Version 10.04

This commit is contained in:
mkazhdan
2018-10-11 16:57:44 -04:00
parent 0964205f7e
commit ff275f3a71
15 changed files with 967 additions and 1863 deletions
+3 -2
View File
@@ -147,7 +147,8 @@ void _Execute( const FEMTree< Dim , Real >* tree , FILE* fp )
if( Verbose.set ) printf( "Got iso-surface: %.2f(s)\n" , Time()-t );
if( Verbose.set ) printf( "Vertices / Polygons: %d / %d\n" , (int)( mesh.outOfCorePointCount()+mesh.inCorePoints.size() ) , (int)mesh.polygonCount() );
PlyWritePolygons< Vertex , Real , Dim >( OutMesh.value , &mesh , ASCII.set ? PLY_ASCII : PLY_BINARY_NATIVE , NULL , 0 , XForm< Real , Dim+1 >::Identity() );
std::vector< std::string > comments;
PlyWritePolygons< Vertex , Real , Dim >( OutMesh.value , &mesh , ASCII.set ? PLY_ASCII : PLY_BINARY_NATIVE , comments , XForm< Real , Dim+1 >::Identity() );
}
}
@@ -229,7 +230,7 @@ int main( int argc , char* argv[] )
int dimension;
ReadFEMTreeParameter( fp , realType , dimension );
{
unsigned int dim;
unsigned int dim = dimension;
unsigned int* sigs = ReadDenseNodeDataSignatures( fp , dim );
if( dimension!=dim ) fprintf( stderr , "[ERROR] Octree and node data dimensions don't math: %d != %d\n" , dimension , dim ) , exit( 0 );
for( unsigned int d=1 ; d<dim ; d++ ) if( sigs[0]!=sigs[d] )