-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Handle Geometry deprecation in three.js r125 #16
Comments
This is my error massage. `Error: ./node_modules/three-csg-ts/lib/index.js 17:23-31 Error: ./node_modules/three-csg-ts/lib/index.js 49:25-33
|
I saw a patch has been released recently to force the version of three.js below r126 (excluded). I don’t know if @samalexander did this to buy time or if this is a permanent « fix » and that the library is not planed to support three.js r126 and later. |
@xawill having seen that Geometry was deprecated in r125, I updated the peer dependency version range for three to < 0.125.0. This was purely to clarify compatibility of the library as things stand. Ordinarily we'd set peer dependency support up to the next major version, but since three doesn't follow conventional semver (and this is a breaking change), it's not that simple. I suspect that this is going to require replacing the library's use of Geometry with BufferGeometry, which is trickier to work with. Open to any other suggestions.. This library was created to support a couple of our client's projects. They are not yet on the latest version of three and so this is not a priority for us right now. That said, I'm happy to take a look once I get time. Otherwise, happy to accept any PRs. |
I forked this repo a while ago and added support for Three.js >= r125. |
@yandeu Would it be possible for you to create a pull request, to update this package by adding support for Three.js >= r125? The simplified user interface is very much appreciated btw ;-) |
Hi @JeffreyArts There is now a better option available I want to use in the future. @manthrax Updated its THREE-CSGMesh library lately to make it work with BufferGeometries. I have forked it with the idea to rewrite it in TypeScript and merge it back to THREE-CSGMesh and then use it in enable3d. It is nearly finished but I had not time to completely finish it yet.
I think it is a good idea to include these fancy wrapper functions I use in enable3d. @manthrax What do you think? Are you ready to merge my TypeScript fork once finished? |
|
Support for three v0.125.0 and above has been released in three-csg-ts v3.0.0. Many thanks again to @manthrax for the original code. |
Thanks! I will check with Michael what his plans are. But I guess I will just merge my fork into |
According to this PR (among other issues and PRs in the three.js repo), three.js will drop the support for the
Geometry
class in favour ofBufferGeometry
.What do you want to do about it ?
PS: I know the deprecation is not yet effective in a released version of three.js, but it will be eventually (as soon as r125 at the end of the month) and it is in all cases way better to use
BufferGeometry
instead ofGeometry
for performance reasons, even though it might be a little less intuitive to work with code-wise.The text was updated successfully, but these errors were encountered: