From 6fa373945260d78e21e16b96994429a272b40daf Mon Sep 17 00:00:00 2001 From: vsv Date: Thu, 27 Jun 2019 12:33:40 +0300 Subject: [PATCH] Correct roes processing --- src/PartSet/PartSet_FieldStepPrs.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); } -- 2.39.2