-
-
Notifications
You must be signed in to change notification settings - Fork 35.5k
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
Volumetric NURBS #27601
Volumetric NURBS #27601
Conversation
Fixed inconsistent naming of parameters in comment
Update NURBSUtils.js
Do you mind updating webgl_geometry_nurbs by adding a new mesh to demonstrate the new |
@Mugen87 Thank you for the suggestion, I will do. There is one small problem. As described in the commit message |
No there isn't. But as a start the mentioned code example would be good. |
@Mugen87 Would this example be sufficient? If so, I will implement it into webgl_geometry_nurbs and update the PR. |
LGTM! Maybe you can add a comment that explains why several instances of |
Expanded NURBS example to NURBSVolume objects.
Added missing include
I have updated webgl_geometry_nurbs as requested. |
Do you mind updating the E2E screenshot? Otherwise the CI fails. You can do that with the following command:
|
Improve example.
Do you mind updating the screenshot one more time? It seems the new screenshot does not honor the changes I have added to your branch (see c12b41f). |
I took the screenshot too quickly :-) Shot be fixed now. Thanks for implementing the changes. BTW, I would not mind working on a tri-variate |
Feel free to give this a try. Now with having |
@Mugen87 There is another feature that I would like to contribute to three.js - adaptive splines. More precisely, truncated hierarchical B-splines (THB). Their basic definition is like NURBS but without the weights. On the plus side, THB splines make it possible to refine the surface/volume adaptively, see here. As a starting point a would "duplicate" |
We are trying to keep the scope of the repository manageable so I would see a NURBS alternative maintained in a separate repository. That said, it is of course okay to add an external example (e.g. |
I was more thinking of implementing the THB core functionality in three.js (two single JS files for surfaces and volumes). The link to Gismo was just meant for illustration purposes. Not to include it as external dependency.
Am 23.01.2024 um 19:48 schrieb Michael Herzog ***@***.***>:
We are trying to keep the scope of the repository manageable so I would see a NURBS alternative maintained in a separate repository. That said, it is of course okay to add a so called external example (e.g. webgl_geometry_thb that uses THB modules to showcase their usage. We do this for other components as well like BVH, CSG or the IFC loader. Check out the examples here and how they include external libs in their import map:
https://threejs.org/examples/?q=external<https://urldefense.com/v3/__https://threejs.org/examples/?q=external__;!!PAKc-5URQlI!7LQ_kkSoYy4BlSPy96XfrrTH__KS0lMvHdSuM65H10RvoHH69iN3KqGo35XEyI-HL1RD1b3kHKajTjbWze9ojTnSoO8$>
—
Reply to this email directly, view it on GitHub<https://urldefense.com/v3/__https://github.com/mrdoob/three.js/pull/27601*issuecomment-1906712542__;Iw!!PAKc-5URQlI!7LQ_kkSoYy4BlSPy96XfrrTH__KS0lMvHdSuM65H10RvoHH69iN3KqGo35XEyI-HL1RD1b3kHKajTjbWze9orohAEig$>, or unsubscribe<https://urldefense.com/v3/__https://github.com/notifications/unsubscribe-auth/AAPGPI4RQKHXIOOTPXV5WPTYQAAYHAVCNFSM6AAAAABCECXXFKVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBWG4YTENJUGI__;!!PAKc-5URQlI!7LQ_kkSoYy4BlSPy96XfrrTH__KS0lMvHdSuM65H10RvoHH69iN3KqGo35XEyI-HL1RD1b3kHKajTjbWze9ovXLpaQk$>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
It really depends on how complex the THB core functionality is. The number of files is not that much of a matter. If it is comparable to the compact |
Related issue: none
Implementation of volumetric (aka tri-variate) NURBS
Tri-variate NURBS are parametric volumes with variables (u, v, w). Extending the example
webgl_geometry_nurbs.html
a volumetric NURBS geometry can be generated as followsSince
ParametricGeometry
does not support tri-variate objects arbitrary slices of the NURBS volume can be visualised as follows: