Need help with mesh boolean in Matlab.

10 visualizaciones (últimos 30 días)
Darpan Shidid
Darpan Shidid el 24 de Jul. de 2017
Editada: DGM el 18 de Jul. de 2025
Hi I need help with implementing mesh boolean as shown in the attached figure. The mesh is in FV form.
  2 comentarios
KSSV
KSSV el 24 de Jul. de 2017
You have coordinates for cube and sphere, and you need the figure you shown? Or, you need to create both the meshes?
Darpan Shidid
Darpan Shidid el 26 de Jul. de 2017
No I have both the meshes. Just need to perform these (shown in figure) Boolean operations on them. Just wondering if I can get an idea about implementing that code.

Iniciar sesión para comentar.

Respuesta aceptada

Sailesh Sidhwani
Sailesh Sidhwani el 27 de Jul. de 2017
I don't think there is a straight-forward function in MATLAB to do this. Please check out the following file-exchange submission. It mentions that it can perform "constructive solid geometry operations on meshes", which is same as what you are trying to achieve.
If you have any questions regarding the same, you can probably contact the author of this submission directly.

Más respuestas (1)

DGM
DGM el 14 de Jul. de 2025
Editada: DGM el 18 de Jul. de 2025
See also:
While my own examples rely on external tools to do the CSG, I think most of the third-party CSG tools (like those in GPToolbox) rely on external libraries to do the work.
That said, I did recently run across this FEX submission which appears to do everything in m-code.
This is the final figure of its included demo:
That said, it's not really as straightforward to use as something like GPT's mesh_boolean() or my ridiculous scad_op() from #561428. Doesn't appear to be as simple as just throwing two sets of FV data into a single function call and getting FV data out. It's more of a demonstration of a whole process. Then again, if you can't compile MEX or install external software, it might be a viable option, and it can probably be wrapped up into a more comfortable form with a little further study.

Categorías

Más información sobre Surface and Mesh Plots en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by