Changeset 21173 for issm/trunk-jpl/src/m/plot/plot_mesh.js
- Timestamp:
- 08/31/16 00:56:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/plot_mesh.js
r21138 r21173 61 61 var node = Node(gl,options); 62 62 canvas.nodes[canvas.nodes.length] = node; 63 scale = 1;63 node["name"] = "mesh"; 64 64 node["shaderName"] = "Colored"; 65 65 node["shader"] = gl["shaders"][node["shaderName"]]; 66 66 node["lineWidth"] = options.getfieldvalue('linewidth',1); 67 node["scale"] = [scale, scale, scale * matrixscale]; 68 node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / (2 / scale)]; 67 node["scale"] = [1, 1, matrixscale]; 68 node["rotation"] = [-90, 0, 0]; 69 node["translation"] = [(xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2]; 70 node["center"] = [(xmin + xmax) / 2, (ymin + ymax) / 2, (zmin + zmax) / 2]; 69 71 node["modelMatrix"] = recalculateModelMatrix(node); 70 72 node["drawMode"] = gl.LINES;
Note:
See TracChangeset
for help on using the changeset viewer.