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

Sphere: Add expandByPoint() and union(). #21493

Merged
merged 2 commits into from
Mar 23, 2021
Merged

Sphere: Add expandByPoint() and union(). #21493

merged 2 commits into from
Mar 23, 2021

Conversation

Mugen87
Copy link
Collaborator

@Mugen87 Mugen87 commented Mar 22, 2021

Related issue: -

Description

I'm currently investigating the computation of bounding volumes for InstancedMesh. A Sphere.union() similar to Box3.union() would be very useful in this context.

Since Sphere.union() is based on extending the bounding sphere by two points, .expandByPoint() is added, too.

@mrdoob mrdoob added this to the r127 milestone Mar 23, 2021
@mrdoob mrdoob merged commit 95ce8f1 into mrdoob:dev Mar 23, 2021
@mrdoob
Copy link
Owner

mrdoob commented Mar 23, 2021

Thanks!

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