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

#123 THREE.BufferGeometry.computeBoundingSphere(): Computed radius is NaN #123

Open
ManomayBisht opened this issue Nov 14, 2023 · 1 comment

Comments

@ManomayBisht
Copy link

After spending 4 days I made a fully functional top class portfolio website, I fixed majority of the errors but there is 1 error that I am unable to fix (because I am unable to understand it)

image

After expanding it I got even more confused, I don't understand where is the problem in the code, and if there is, then in what way is it affecting the project

p1

p2

I understand that there is an issue with the "position" attribute of the BufferGeometry object, possibly containing NaN (Not a Number) values which it should not but then whats the fix....
I updated the three.js too by "npm update three" still nothing changed, its like I am stuck with this

Please help

@LevinsonEli
Copy link

Good job so far.

Each point should have (x, y, z) coordinates which are 3 values in total.
And I assume that "positions={}" inside your "Points" element expect to receive an array for point positions.
And that should be dividable by 3.
3 values for each point.
And 5000 is not dividable by 3.
5001 worked for me.

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

No branches or pull requests

2 participants