Skip to content
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

Octree: Add clear(). #27160

Merged
merged 2 commits into from
Nov 17, 2023
Merged

Octree: Add clear(). #27160

merged 2 commits into from
Nov 17, 2023

Conversation

CahierX
Copy link
Contributor

@CahierX CahierX commented Nov 9, 2023

When I use octree, I need to reset octree in some scenarios, so I add the clear method

Repository owner deleted a comment from jabri62018 Nov 10, 2023
@Mugen87
Copy link
Collaborator

Mugen87 commented Nov 16, 2023

I have slightly updated the clear() method and the ctor to make the code more consistent. Would this version of clear() work for you, too?

@Mugen87 Mugen87 added this to the r159 milestone Nov 16, 2023
@Mugen87 Mugen87 changed the title feature: add octree clear method Nov 16, 2023
@CahierX
Copy link
Contributor Author

CahierX commented Nov 17, 2023

I have slightly updated the clear() method and the ctor to make the code more consistent. Would this version of clear() work for you, too?

Yes, this version of clear() works for me as well.

@mrdoob mrdoob merged commit aa2cfc8 into mrdoob:dev Nov 17, 2023
11 checks passed
AdaRoseCannon pushed a commit to AdaRoseCannon/three.js that referenced this pull request Jan 15, 2024
* feature: add octree clear method

* Update Octree.js

---------

Co-authored-by: cahierchen <cahierchen@tencent.com>
Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants