(w, arr)
| 8 | var zip3 = require('../../plots/gl3d/zip3'); |
| 9 | |
| 10 | var findNearestOnAxis = function(w, arr) { |
| 11 | for(var q = arr.length - 1; q > 0; q--) { |
| 12 | var min = Math.min(arr[q], arr[q - 1]); |
| 13 | var max = Math.max(arr[q], arr[q - 1]); |
| 14 | if(max > min && min < w && w <= max) { |
| 15 | return { |
| 16 | id: q, |
| 17 | distRatio: (max - w) / (max - min) |
| 18 | }; |
| 19 | } |
| 20 | } |
| 21 | return { |
| 22 | id: 0, |
| 23 | distRatio: 0 |
| 24 | }; |
| 25 | }; |
| 26 | |
| 27 | function IsosurfaceTrace(scene, mesh, uid) { |
| 28 | this.scene = scene; |
no outgoing calls
no test coverage detected
searching dependent graphs…