I use importMesh to import meshes from glb, like below:
And the caller is like:
At the breakpoint at line 83, I checked the total meshes are 2, so far without problem.
And it goes in loop, like below and the breakpoint is line 70:
I checked the scene.meshes, it has 3 more meshes than expected in it. And between 2 breakpoints, nothing done to add any new mesh!
The render view looks like:
The purple outer box is not what I wanted!
Back to debugger, I removed the redundant meshes like this:
The result is that the purple box disappeared after the program got free from debugger. see below:
And the black background is my want.
I am confusing why there are 3 redundant meshes(purple box in the view), though application does not add them.
Note: The gbl files are sourced by NASA.