mirror of
https://github.com/CloudCompare/PoissonRecon.git
synced 2026-08-30 09:00:27 +08:00
Added check if write succeeded.
This commit is contained in:
@@ -365,7 +365,9 @@ int Execute( void )
|
||||
char comment[1024];
|
||||
sprintf( comment , "#Trimmed In: %9.1f (s)" , Time()-t );
|
||||
comments.push_back( comment );
|
||||
if( Out.set ) PlyWritePolygons< Vertex >( Out.value , vertices , gtPolygons , Vertex::PlyWriteProperties() , Vertex::PlyWriteNum , ft , comments );
|
||||
if( Out.set )
|
||||
if( !PlyWritePolygons< Vertex >( Out.value , vertices , gtPolygons , Vertex::PlyWriteProperties() , Vertex::PlyWriteNum , ft , comments ) )
|
||||
fprintf( stderr , "[ERROR] Could not write mesh to: %s\n" , Out.value ) , exit( 0 );
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user