MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / updatePoint

Method updatePoint

viewer/public/js/PointCloud.js:107–117  ·  view source on GitHub ↗
(id, x, y, z, r, g, b)

Source from the content-addressed store, hash-verified

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)) {

Callers 1

updateMapElementsFunction · 0.80

Calls 3

addPointMethod · 0.95
changePointPosMethod · 0.95
changePointColorMethod · 0.95

Tested by

no test coverage detected