From: vsv Date: Thu, 27 Jun 2019 09:33:40 +0000 (+0300) Subject: Correct roes processing X-Git-Tag: VEDF2019Lot4~103^2~11 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6fa373945260d78e21e16b96994429a272b40daf;p=modules%2Fshaper.git Correct roes processing --- diff --git a/src/PartSet/PartSet_FieldStepPrs.cpp b/src/PartSet/PartSet_FieldStepPrs.cpp index f616fabce..df7fc6723 100644 --- a/src/PartSet/PartSet_FieldStepPrs.cpp +++ b/src/PartSet/PartSet_FieldStepPrs.cpp @@ -91,8 +91,8 @@ QList PartSet_FieldStepPrs::range(double& theMin, double& theMax) const int aCols = aTablesAttr->columns(); QList aFieldStepData; - for (int j = 0; j < aCols; j++) { - for (int k = 1; k < aRows; k++) { // Do not use default values + for (int k = 1; k < aRows; k++) { // Do not use default values + for (int j = 0; j < aCols; j++) { ModelAPI_AttributeTables::Value aVal = aTablesAttr->value(k, j, aStep); switch (aType) { case ModelAPI_AttributeTables::DOUBLE: @@ -157,7 +157,7 @@ void PartSet_FieldStepPrs::Compute(const Handle(PrsMgr_PresentationManager3d)& t TopoDS_Shape aShape = aShapePtr->impl(); double aValue = aShapeData.at(i); Quantity_Color aColor; - if (AIS_ColorScale::FindColor(aValue, 0., 1. + Precision::Confusion(), 2, aColor)) + if (AIS_ColorScale::FindColor(aValue, 0., 1., 2, aColor)) SetCustomColor(aShape, aColor); } } @@ -172,8 +172,8 @@ QList PartSet_FieldStepPrs::booleanValues() const int aRows = aTablesAttr->rows(); int aCols = aTablesAttr->columns(); QList aFieldStepData; - for (int j = 0; j < aCols; j++) { - for (int k = 1; k < aRows; k++) { // Do not use default values + for (int k = 1; k < aRows; k++) { // Do not use default values + for (int j = 0; j < aCols; j++) { ModelAPI_AttributeTables::Value aVal = aTablesAttr->value(k, j, aStep); aFieldStepData << (aVal.myBool ? 1 : 0); }