-
-
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
BoundingBoxHelper for buffer geometry does not use drawrange neither groups #8690
Comments
See #8674 |
It is up for debate as to whether it should. |
Drawrange and Groups are used to draw the buffers so IMHO they should be used at setFromObject ( second part of setFromObject)
The only thing to evaluate is wether it can be possible to have a drawrange start-count that limits the groups. (2 or 3 more lines of code). Thanks |
Continuing the discussion... Groups exist for the purpose of assigning multiple materials to a geometry. I am not sure why groups should be considered here. Also, Also, In any event, you would have to handle indexed and non-indexed |
Ups , sorry for the mistake. I was mixing concepts Maybe this is more reasonable...
Thanks and sorry |
Like I said,
The draw range is over the But even so, it is debatable if |
Hmm, groups are definitely a can of worms. But drawRange could be interesting... |
Description of the problem
BoundingBoxHelper.update (setFromObject) for buffer geometry does not use drawrange.count ( neither groups), so the limits can include points with 0,0,0 (now it uses positions.length)
if you have the typedarray with data still with 0,0,0, the box dimension figured out is not correct.(0,0,0 is included...) (I have predimensioned positions array and filling as I need)
I'm using by now to create pointclouds but I imagine some problems in the future if the bufferGeometry is used to drawlines or triangles (using groups)
So I this this is a mix of bug & enhance ,?
...
Three.js version
Browser
OS
Hardware Requirements (graphics card, VR Device, ...)
The text was updated successfully, but these errors were encountered: