Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
quick optimization patch (bytearray for images)
[modules/hydro.git]
/
src
/
HYDROGUI
/
HYDROGUI_VTKPrsBathymetry.cxx
diff --git
a/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx
b/src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx
index 08f6ef08da0b5d0361a22bf73065a16c41944848..3ef0794ee9b50acea02ba342cc13d1360c52934f 100644
(file)
--- a/
src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx
+++ b/
src/HYDROGUI/HYDROGUI_VTKPrsBathymetry.cxx
@@
-87,7
+87,7
@@
void HYDROGUI_VTKPrsBathymetry::compute()
double aZ;
int anInvalidZ = InvalidZValue();
double aZ;
int anInvalidZ = InvalidZValue();
- for (int i =
1; i <=
aNbPoints; i++ )
+ for (int i =
0; i <
aNbPoints; i++ )
{
anAltPnt = anAltPoints[i];
aZ = anAltPnt.Z;
{
anAltPnt = anAltPoints[i];
aZ = anAltPnt.Z;
@@
-95,8
+95,8
@@
void HYDROGUI_VTKPrsBathymetry::compute()
{
aZ = Z_MAX; // If Z value is invalid then use Z_MAX
}
{
aZ = Z_MAX; // If Z value is invalid then use Z_MAX
}
- aPoints->InsertPoint( i
- 1
, anAltPnt.X, anAltPnt.Y, aZ );
- aVertex->GetPointIds()->SetId( 0, i
- 1
);
+ aPoints->InsertPoint( i, anAltPnt.X, anAltPnt.Y, aZ );
+ aVertex->GetPointIds()->SetId( 0, i );
aVertexGrid->InsertNextCell( aVertex->GetCellType(), aVertex->GetPointIds());
aZValues->InsertNextValue( aZ );
}
aVertexGrid->InsertNextCell( aVertex->GetCellType(), aVertex->GetPointIds());
aZValues->InsertNextValue( aZ );
}