Skip to content

Conversation

@ftoromanoff
Copy link
Contributor

linked to the issue #2633.

A proposal to solve the problemethat appeared with the custom example
https://github.com/bloc-in-bloc/itowns/blob/f/custom-pointcloud-sample/examples/demo_hackathon_orvault_planarView.html

The custome transformation apply to the global object3d wasn't apply to the newly generated OBB, thus considering that they were elsewhere.

@ftoromanoff ftoromanoff changed the title fix(PointCloud): projection in a local ref fix: Custom example with custom projection Dec 12, 2025
jailln
jailln previously approved these changes Jan 8, 2026

childNode.voxelOBB.matrixWorldInverse = this.voxelOBB.matrixWorldInverse;
childNode.clampOBB.matrixWorldInverse = this.clampOBB.matrixWorldInverse;
this.clampOBB.parent!.add(childNode.clampOBB);
Copy link
Contributor

Choose a reason for hiding this comment

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

what does the !. syntax means ? Do you mean ?. instead ? (there is other occurences in the MR)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

the !. is a TS syntax. it lmight be in a way similar to the ?. but on the type and not on the value.
In this case, I know that parent is always define even if parent on a generic clampOBB can be definied or not, as we call the createChildOBB, only on a child node (thus with a parent)

@jailln jailln dismissed their stale review January 8, 2026 15:37

forgot one comment that must be addressed before

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.

2 participants