summaryrefslogtreecommitdiffstats
path: root/scilab
diff options
context:
space:
mode:
authorSt├ęphane Mottelet <stephane.mottelet@utc.fr>2020-06-02 16:10:50 +0200
committerClement DAVID <clement.david@esi-group.com>2020-12-22 17:37:51 +0100
commitc296e494a8468015251544da6976d996d4400f0b (patch)
tree294904477fecd061089e532d1bc663c09344ea57 /scilab
parentde4658a44c879106b0629d66215f352f3a2431d8 (diff)
downloadscilab-c296e494a8468015251544da6976d996d4400f0b.zip
scilab-c296e494a8468015251544da6976d996d4400f0b.tar.gz
* Bug 16407 fixed: now Fec rendering is correct
https://bugzilla.scilab.org/show_bug.cgi?id=16407 Change-Id: Id910084c9538dc0ccfb1f039d58fb8e30f8d33a4
Diffstat (limited to 'scilab')
-rw-r--r--scilab/CHANGES.md1
-rw-r--r--scilab/modules/graphic_objects/src/cpp/MeshFecDataDecomposer.cpp4
2 files changed, 5 insertions, 0 deletions
diff --git a/scilab/CHANGES.md b/scilab/CHANGES.md
index cdeb69f..12c75f0 100644
--- a/scilab/CHANGES.md
+++ b/scilab/CHANGES.md
@@ -324,6 +324,7 @@ Bug Fixes
324* [#16401](https://bugzilla.scilab.org/16401): global `external_object_java` class was crashing Scilab. 324* [#16401](https://bugzilla.scilab.org/16401): global `external_object_java` class was crashing Scilab.
325* [#16403](https://bugzilla.scilab.org/16403): 1D extraction of matrix with implicit index had wrong dimensions. 325* [#16403](https://bugzilla.scilab.org/16403): 1D extraction of matrix with implicit index had wrong dimensions.
326* [#16406](https://bugzilla.scilab.org/16406): `edit_curv` yielded an error when reading data. 326* [#16406](https://bugzilla.scilab.org/16406): `edit_curv` yielded an error when reading data.
327* [#16407](https://bugzilla.scilab.org/16407): Fec rendering was incorrect
327* [#16408](https://bugzilla.scilab.org/16408): toJSON(var, indent, filename) is the right call sequence. Documentation has been udpated. 328* [#16408](https://bugzilla.scilab.org/16408): toJSON(var, indent, filename) is the right call sequence. Documentation has been udpated.
328* [#16445](https://bugzilla.scilab.org/16445): `colorbar(..)` ignored how to guess `umin` and `umax` for a Champ object (with .colored="on"). 329* [#16445](https://bugzilla.scilab.org/16445): `colorbar(..)` ignored how to guess `umin` and `umax` for a Champ object (with .colored="on").
329* [#16449](https://bugzilla.scilab.org/16449): Insertion of implicit vector in Cell was crahsing Scilab 330* [#16449](https://bugzilla.scilab.org/16449): Insertion of implicit vector in Cell was crahsing Scilab
diff --git a/scilab/modules/graphic_objects/src/cpp/MeshFecDataDecomposer.cpp b/scilab/modules/graphic_objects/src/cpp/MeshFecDataDecomposer.cpp
index ec60b39..d3df3e0 100644
--- a/scilab/modules/graphic_objects/src/cpp/MeshFecDataDecomposer.cpp
+++ b/scilab/modules/graphic_objects/src/cpp/MeshFecDataDecomposer.cpp
@@ -168,6 +168,10 @@ void MeshFecDataDecomposer::fillTextureCoordinates(int id, float* buffer, int bu
168 } 168 }
169 else 169 else
170 { 170 {
171 /* fix min and max value to respect position of strips https://bugzilla.scilab.org/show_bug.cgi?id=16407 */
172 double a = maxValue-minValue;
173 minValue += a/2.0/(double)colorsNumber;
174 maxValue -= a/2.0/(double)colorsNumber;
171 for (int i = 0; i < numVertices; i++) 175 for (int i = 0; i < numVertices; i++)
172 { 176 {
173 buffer[bufferOffset++] = (float)(t + scale * (values[i] - minValue) / (maxValue - minValue)); 177 buffer[bufferOffset++] = (float)(t + scale * (values[i] - minValue) / (maxValue - minValue));