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:
Laurent Saboret
2006-12-08 16:12:22 +00:00
parent a993ccd2e6
commit 258df72389
14 changed files with 325 additions and 183 deletions
@@ -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