Fixed 2 crashing bugs in Parameterization_mesh_patch_3 (see fork.off and butterfly-2faces.off).
Added is_valid to ParameterizationMesh_3 concept. Added back traces (if DEBUG_TRACE is defined).
This commit is contained in:
+5
-5
@@ -57,13 +57,13 @@ int main(int argc, char * argv[])
|
||||
|
||||
// Read the mesh
|
||||
std::ifstream stream(input_filename);
|
||||
if(!stream)
|
||||
{
|
||||
std::cerr << "FATAL ERROR: cannot open file " << input_filename << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
Polyhedron mesh;
|
||||
stream >> mesh;
|
||||
if(!stream || !mesh.is_valid() || mesh.empty())
|
||||
{
|
||||
std::cerr << "FATAL ERROR: cannot read OFF file " << input_filename << std::endl;
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
|
||||
//***************************************
|
||||
// Create Polyhedron adaptor
|
||||
|
||||
Reference in New Issue
Block a user