-
-
Notifications
You must be signed in to change notification settings - Fork 35.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DirectGeometry: remove boundingBox & boundingSphere properties #13420
Conversation
Instead of removing the code, i think i would clone the bounding volumes from a geometry object in if ( geometry.boundingSphere !== null ) {
this.boundingSphere = geometry.boundingSphere.clone();
}
if ( geometry.boundingBox !== null ) {
this.boundingBox = geometry.boundingBox.clone();
} |
@Mugen87 Yes, maybe you are right. three.js/src/core/BufferGeometry.js Lines 483 to 490 in 4966686
However both ways will affect BufferGeometry.updateFromObject , it will clone the bounding volumes only for Mesh?
|
The conversion from
I would not do this since the real conversion is delegated to |
@Mugen87 Thanks for explanation. I'll close this pull request and make a new one as you suggested.
You are right. What I mean is it doesn't matter which method to clone bounding volumes, but if To make it clear:
And |
three.js/src/core/DirectGeometry.js
Lines 25 to 26 in 4966686
Are these two properties ever used?
three.js/docs/api/core/DirectGeometry.html
Lines 68 to 77 in 4966686
The doc says they can be calculated, but no such functions are found for
DirectGeometry
.three.js/docs/api/core/DirectGeometry.html
Lines 99 to 107 in 4966686
Here too.
three.js/docs/api/core/DirectGeometry.html
Line 97 in 4966686
And this is not true.