-
-
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
None of merge() calls involving BufferGeometry are working #13506
Comments
It does something, but not what people expect / not what To losslessly merge BufferGeometries you must pre-allocate size, or (in r91) use — BufferGeometryUtils.mergeBufferGeometries( [ geom1, geom2, geom3, ... ] ); See: #13241 |
I'm still not sure what the purpose of Also, now we have two different methods involving |
I think
I guess the question is, (a) do those use cases justify having the full implementation in three.js core, and (b) if not, should we keep the somewhat inconsistent API we have, or just deprecate |
well there is no any:
they do not take matrix, but offset. that's not subtly different, that's entirely different. with that, the assumption that I operated on is invalid, and so is this issue :) thanks for BufferGeometryUtils.merge pointer! |
@donmccurdy perhaps I'm misunderstanding, but at least your 2nd and 3rd examples would require the |
Yeah, I expect the use cases for both are the same. The |
One way to use it:
|
@WestLangley yes, I'm aware that you can do that. However it's overly complex and not obvious. If the only use case for |
I do not think it is complex at all, it is just low-level. I had previously considered proposing Thing is, where Maybe |
Ok, I guess complexity is a personal opinion - I'm trying to think about it from the point of view of a beginner. However the main issue here is that we have three geometry merging functions, and this one does something different to the other two. I agree that it should be renamed. I would go for |
What's the point of having these methods if they do nothing? https://jsfiddle.net/f2Lommf5/2523/ I thought you were deprecating THREE.Geometry
The text was updated successfully, but these errors were encountered: