Skip to content

Commit d1eb374

Browse files
committed
refactor(PotreeDebug): rename PotreeDebug to PointCloudDebug
1 parent 47f859d commit d1eb374

File tree

9 files changed

+13
-10
lines changed

9 files changed

+13
-10
lines changed

examples/3dtiles_pointcloud.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@
5858
}
5959
// Create a new Layer 3d-tiles For Pointcloud
6060
// -------------------------------------------
61+
var $3dTilesSource = new itowns.C3DTilesSource({
62+
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/pnts-sete-2021-0756_6256/tileset.json',
63+
});
6164
var $3dTilesLayerSetePC = new itowns.C3DTilesLayer('3d-tiles-sete', {
6265
name: 'SetePC',
6366
sseThreshold: 5,
6467
pntsMode: itowns.PNTS_MODE.CLASSIFICATION,
6568
pntsShape : itowns.PNTS_SHAPE.CIRCLE,
66-
source: new itowns.C3DTilesSource({
67-
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/pnts-sete-2021-0756_6256/tileset.json',
68-
}),
69+
source: $3dTilesSource,
6970
}, view);
7071

7172
$3dTilesLayerSetePC.addEventListener(

examples/copc_simple_loader.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
pointBudget: 3000000,
110110
});
111111
view.addLayer(layer).then(onLayerReady);
112-
debug.PotreeDebug.initTools(view, layer, gui);
112+
debug.PointCloudDebug.initTools(view, layer, gui);
113113
}
114114

115115
function loadAutzen() {

examples/entwine_3d_loader.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898

9999
itowns.View.prototype.addLayer.call(view, eptLayer).then(onLayerReady);
100100

101-
debug.PotreeDebug.initTools(view, eptLayer, debugGui);
101+
debug.PointCloudDebug.initTools(view, eptLayer, debugGui);
102102
}
103103

104104
readEPTURL();

examples/entwine_simple_loader.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
view.addLayer(eptLayer).then(onLayerReady);
105105

106106
eptLayer.whenReady
107-
.then(() => debug.PotreeDebug.initTools(view, eptLayer, debugGui));
107+
.then(() => debug.PointCloudDebug.initTools(view, eptLayer, debugGui));
108108

109109
function dblClickHandler(event) {
110110
var pick = view.pickObjectsAt(event, 5, eptLayer);

examples/potree_25d_map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
potreeLayer.root.bbox.getSize(size);
103103
potreeLayer.root.bbox.getCenter(lookAt);
104104

105-
debug.PotreeDebug.initTools(view, potreeLayer, debugGui);
105+
debug.PointCloudDebug.initTools(view, potreeLayer, debugGui);
106106

107107
view.camera3D.far = 2.0 * size.length();
108108

examples/potree_3d_map.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171

7272
// add potreeLayer to scene
7373
function onLayerReady() {
74-
debug.PotreeDebug.initTools(view, potreeLayer, debugGui);
74+
debug.PointCloudDebug.initTools(view, potreeLayer, debugGui);
7575

7676
// update stats window
7777
var info = document.getElementById('info');

src/Layer/C3DTilesLayer.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,9 @@ class C3DTilesLayer extends GeometryLayer {
9595
* @param {Number} [config.cleanupDelay=1000] The time (in ms) after which a tile content (and its children) are
9696
* removed from the scene.
9797
* @param {C3DTExtensions} [config.registeredExtensions] 3D Tiles extensions managers registered for this tileset.
98-
* @param {String} [config.pntsMode= PNTS_MODE.COLOR] {@link PointsMaterials} Point cloud coloring mode. Only 'COLOR' or 'CLASSIFICATION' are possible. COLOR uses RGB colors of the points, CLASSIFICATION uses a classification property of the batch table to color points.
98+
* @param {String} [config.pntsMode= PNTS_MODE.COLOR] {@link PointsMaterials} Point cloud coloring mode.
99+
* Only 'COLOR' or 'CLASSIFICATION' are possible. COLOR uses RGB colors of the points,
100+
* CLASSIFICATION uses a classification property of the batch table to color points.
99101
* @param {String} [config.pntsShape= PNTS_SHAPE.CIRCLE] Point cloud point shape. Only 'CIRCLE' or 'SQUARE' are possible.
100102
* @param {String} [config.pntsSizeMode= PNTS_SIZE_MODE.VALUE] {@link PointsMaterials} Point cloud size mode. Only 'VALUE' or 'ATTENUATED' are possible. VALUE use constant size, ATTENUATED compute size depending on distance from point to camera.
101103
* @param {Number} [config.pntsMinAttenuatedSize=3] Minimum scale used by 'ATTENUATED' size mode

utils/debug/Main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export { default as Debug } from './Debug';
2-
export { default as PotreeDebug } from './PotreeDebug';
2+
export { default as PointCloudDebug } from './PointCloudDebug';
33
export { default as createTileDebugUI } from './TileDebug';
44
export { default as create3dTilesDebugUI } from './3dTilesDebug';
55
export { default as GeometryDebug } from './GeometryDebug';

0 commit comments

Comments
 (0)