(id, x, y, z, r, g, b)
| 105 | |
| 106 | // public methods |
| 107 | updatePoint(id, x, y, z, r, g, b) { |
| 108 | |
| 109 | if (this.vertexIds[id] === undefined || this.vertexIds[id] < 0) { |
| 110 | this.addPoint(id, x, y, z, r, g, b); |
| 111 | this.nValidPoint++; |
| 112 | } else { |
| 113 | this.changePointPos(id, x, y, z); |
| 114 | this.changePointColor(id, r, g, b); |
| 115 | } |
| 116 | this.pointColors[id] = [r, g, b]; |
| 117 | } |
| 118 | |
| 119 | removePoint(id) { |
| 120 | if (!(id in this.vertexIds)) { |
no test coverage detected