Skip to content

Fix PointCloud examples - #2853

Open
ftoromanoff wants to merge 4 commits into
iTowns:masterfrom
ftoromanoff:fix/PointCloudExamples
Open

ftoromanoff wants to merge 4 commits into
iTowns:masterfrom
ftoromanoff:fix/PointCloudExamples

Conversation

@ftoromanoff

@ftoromanoff ftoromanoff commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

This was referenced Sep 25, 2026
@ftoromanoff
ftoromanoff force-pushed the fix/PointCloudExamples branch from 7c83201 to 18e7b27 Compare September 25, 2026 15:41
Comment thread packages/Main/src/Source/VpcSource.js Outdated
@ftoromanoff
ftoromanoff force-pushed the fix/PointCloudExamples branch 4 times, most recently from f6f3794 to 2c6fe32 Compare October 7, 2026 16:23
@ftoromanoff
ftoromanoff force-pushed the fix/PointCloudExamples branch from 2c6fe32 to 7facdb8 Compare October 8, 2026 09:31
@HoloTheDrunk

Copy link
Copy Markdown
Contributor

@ketourneau I've taken the liberty of assigning you since you're listed as a point cloud expert in the CONTRIBUTING.md

geometry.boundingBox.getSize(size);
geometry.boundingBox.getCenter(lookAt);

view.camera3D.far = Math.max(2.0 * size.length(), view.camera3D.far);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Las doesn't appear unless I move the camera.

I think it's missing :
view.camera3D.updateProjectionMatrix();

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep the previous behaviour (before the example stoped working) but it will be a nice addition to fix this bug. Thanks

cmd.reject(err);
this.counters.failed++;
if (__DEBUG__ && this.counters.failed < 3) {
if ((__DEBUG__ && this.counters.failed < 5) || !__DEBUG__) {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a missprint ?
Maybe you add !__DEBUG___ for debuging ? If it's intentional, why not remove the “if”?

@ftoromanoff ftoromanoff Oct 9, 2026 •

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Currently, if tall errors are well catched, itowns will only logged the 2 first errors and will log the follwing one if __DEBUG__ is false, what i find very confusing...

In my opinion we should log all errors in the production mode and for the debug mode, as we might expect too many errors, we should be able to limit the logging to the first errors. (and why not have all the other errors gathered together, what I have done in the last version)

r.clampOBB.updateMatrixWorld(true);
this.root.children[i] = r;
});
}).catch(() => {});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why empty catch here ? Maybe it's a missprint ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if promisedRoot failed, we already have the error caught by the scheduler thus we don't want to have it uncaught and redirect to the console..

mockSubRoot.load = promisedRoot.then(root => root.load);
mockSubRoot.load = promisedRoot
.then(root => root.load)
.catch(() => {});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why empty catch here ? Maybe it's a missprint ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same reason.

before adding these lines, when there is an error raised, we had it redirect to the console 3 times in addition to have it handled by the scheduler...

};
context.scheduler.execute(cmd);

context.scheduler.execute(cmd).catch(() => {});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why empty catch here ? Maybe it's a missprint ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

@ftoromanoff
ftoromanoff force-pushed the fix/PointCloudExamples branch 3 times, most recently from 9bcea10 to 00ec28e Compare October 9, 2026 14:33
@ftoromanoff
ftoromanoff force-pushed the fix/PointCloudExamples branch from 00ec28e to 6e85bf4 Compare October 9, 2026 15:09

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants