Skip to content
Snippets Groups Projects
Commit 11a0abec authored by claudio's avatar claudio
Browse files

[NRRPLT-6324] In brainvisualizer some neurons disappear

Change-Id: I36a80942511c00f49c5748d5991575101504b95f
parent be9baea0
No related branches found
No related tags found
No related merge requests found
...@@ -487,9 +487,9 @@ BRAIN3D.NeuroRepresentation.prototype.applyFlatShape = function () ...@@ -487,9 +487,9 @@ BRAIN3D.NeuroRepresentation.prototype.applyFlatShape = function ()
for (var y = 0; y < nline; y++) for (var y = 0; y < nline; y++)
{ {
var pvyx = vy.x * y / (nline - 1) * edgeSize; var pvyx = vy.x * y / (nline - 1) * edgeSize || 0;;
var pvyy = vy.y * y / (nline - 1) * edgeSize; var pvyy = vy.y * y / (nline - 1) * edgeSize || 0;;
var pvyz = vy.z * y / (nline - 1) * edgeSize; var pvyz = vy.z * y / (nline - 1) * edgeSize || 0;;
pvyx += vy.x * -edgeSize * 0.5; pvyx += vy.x * -edgeSize * 0.5;
pvyy += vy.y * -edgeSize * 0.5; pvyy += vy.y * -edgeSize * 0.5;
...@@ -504,9 +504,9 @@ BRAIN3D.NeuroRepresentation.prototype.applyFlatShape = function () ...@@ -504,9 +504,9 @@ BRAIN3D.NeuroRepresentation.prototype.applyFlatShape = function ()
{ {
var px, py, py; var px, py, py;
px = vx.x * x / (nperline - 1) * edgeSize; px = vx.x * x / (nperline - 1) * edgeSize || 0;;
py = vx.y * x / (nperline - 1) * edgeSize; py = vx.y * x / (nperline - 1) * edgeSize || 0;;
pz = vx.z * x / (nperline - 1) * edgeSize; pz = vx.z * x / (nperline - 1) * edgeSize || 0;;
px += vx.x * -edgeSize * 0.5; px += vx.x * -edgeSize * 0.5;
py += vx.y * -edgeSize * 0.5; py += vx.y * -edgeSize * 0.5;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment