Changeset 19854


Ignore:
Timestamp:
12/03/15 22:26:23 (9 years ago)
Author:
Eric.Larour
Message:

CHG: added view angle option.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_unit.js

    r19853 r19854  
    4646        var scale = 1 / (xmax - xmin);
    4747        node["scale"] = [scale, scale, scale];
     48        node["rotation"] = options.getfieldvalue('view',[0,0,0]);
    4849        node["translation"] = [(xmin + xmax) / (-2 / scale), (ymin + ymax) / (-2 / scale), (zmin + zmax) / (-2 / scale)];
    4950        node["modelMatrix"] = recalculateModelMatrix(node);
Note: See TracChangeset for help on using the changeset viewer.