mirror of https://github.com/CGAL/cgal
Add some verbose if the solver fails
This commit is contained in:
parent
3a8a7c1f26
commit
aa6a1907ba
|
Before Width: | Height: | Size: 813 KiB After Width: | Height: | Size: 813 KiB |
|
|
@ -160,9 +160,16 @@ void smooth_shape(const FaceRange& faces,
|
|||
smoother.setup_system(A, bx, by, bz, stiffness, time);
|
||||
|
||||
if(smoother.solve_system(A, Xx, Xy, Xz, bx, by, bz, solver))
|
||||
{
|
||||
smoother.update_mesh(Xx, Xy, Xz);
|
||||
}
|
||||
else
|
||||
{
|
||||
#ifdef CGAL_PMP_SMOOTHING_VERBOSE
|
||||
std::cerr << "Failed to solve system!" << std::endl;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
|
||||
#ifdef CGAL_PMP_SMOOTHING_OUTPUT_INTERMEDIARY_STEPS
|
||||
std::stringstream oss;
|
||||
|
|
|
|||
Loading…
Reference in New Issue