Added a quick check for callback presence (avoid crash if cb function is not provided)
This commit is contained in:
parent
e2b5b6fba3
commit
f358db54fd
|
@ -340,7 +340,7 @@ template <class OLD_MESH_TYPE,class NEW_MESH_TYPE, class FLT, class DISTFUNCTOR
|
||||||
extractor.Initialize();
|
extractor.Initialize();
|
||||||
for (int j=0; j<=this->siz.Y(); j++)
|
for (int j=0; j<=this->siz.Y(); j++)
|
||||||
{
|
{
|
||||||
cb((100*j)/this->siz.Y(),"Marching ");
|
if (cb) cb((100*j)/this->siz.Y(),"Marching ");
|
||||||
ProcessSlice<EXTRACTOR_TYPE>(extractor);//find cells where there is the isosurface and examine it
|
ProcessSlice<EXTRACTOR_TYPE>(extractor);//find cells where there is the isosurface and examine it
|
||||||
NextSlice();
|
NextSlice();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue