Skip to content

Commit

Permalink
examples(potree): update
Browse files Browse the repository at this point in the history
  • Loading branch information
ftoromanoff committed Oct 4, 2024
1 parent 7533ad8 commit 6b22846
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
9 changes: 5 additions & 4 deletions examples/potree_25d_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,13 @@
view.mainLoop.gfxEngine.renderer.setClearColor(0xcccccc);

// Configure Point Cloud layer
potreeLayer = new itowns.PotreeLayer('eglise_saint_blaise_arles', {
source: new itowns.PotreeSource({
const potreeSource = new itowns.PotreeSource({
file: 'eglise_saint_blaise_arles.js',
url: 'https://raw.githubusercontent.com/iTowns/iTowns2-sample-data/master/pointclouds/eglise_saint_blaise_arles',
crs: view.referenceCrs,
}),
crs: 'EPSG:3946',
});
potreeLayer = new itowns.PotreeLayer('eglise_saint_blaise_arles', {
source: potreeSource,
});

// point selection on double-click
Expand Down
11 changes: 6 additions & 5 deletions examples/potree_3d_map.html
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,13 @@
view.controls.minDistance = 50;

// Configure Point Cloud layer
potreeLayer = new itowns.PotreeLayer('eglise_saint_blaise_arles', {
source: new itowns.PotreeSource({
file: 'eglise_saint_blaise_arles.js',
const potreeSource = new itowns.PotreeSource({
file: 'eglise_saint_blaise_arles.js',
url: 'https://raw.githubusercontent.com/gmaillet/dataset/master/',
crs: view.referenceCrs,
}),
crs: 'EPSG:4978',
});
potreeLayer = new itowns.PotreeLayer('eglise_saint_blaise_arles', {
source: potreeSource,
});

// add potreeLayer to scene
Expand Down

0 comments on commit 6b22846

Please sign in to comment.