(list, numVertices)
| 89 | |
| 90 | // Validate indices |
| 91 | function hasValidIndices(list, numVertices) { |
| 92 | var len = list.length; |
| 93 | for(var i = 0; i < len; i++) { |
| 94 | if(list[i] <= -0.5 || list[i] >= numVertices - 0.5) { // Note: the indices would be rounded -0.49 is valid. |
| 95 | return false; |
| 96 | } |
| 97 | } |
| 98 | return true; |
| 99 | } |
| 100 | |
| 101 | proto.update = function(data) { |
| 102 | var scene = this.scene; |
no outgoing calls
no test coverage detected
searching dependent graphs…