Skip to content
Snippets Groups Projects
Commit 2312683c authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 168d1424
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,8 @@ void uvPlot::fill(std::vector<double> &u, std::vector<double> &v,
_v.clear();
_f.clear();
if(u.empty() || u.size() != v.size() || u.size() != f.size())
return;
if(u.size() == v.size() && u.size() == f.size()){
_dmin = 1.e200; _dmax = 0.;
for(unsigned int i = 0; i < u.size(); i++){
// only store valid points
if(u[i] >= 0. && u[i] <= 1. && v[i] >= 0. && v[i] <= 1.){
......@@ -38,6 +35,7 @@ void uvPlot::fill(std::vector<double> &u, std::vector<double> &v,
_dmax = std::max(_dmax, f[i]);
}
}
}
if(_u.empty()) _dmin = _dmax = 0.;
redraw();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment