intersect and delete 3D Mesh
17 views (last 30 days)
Show older comments
Hi,
I'm trying to optimize a plotted 3D geometry by 'cutting' it with a differnt geometry. The Idea is to identify the intersecting parts of it and delete these. Does anyone know if this is possible? And if so how? The first geometry is a pyramid frustum and the second, which is going to be the cutting one, is a cylinder.
Let me know if theres a need of code, more infos or sth, im kinda new here :)
Cheers
1 Comment
Dyuman Joshi
on 15 Jan 2024
What is the form of the 3D geometry?
Is it an external file like .stl? or do you simply have the data points for the geometry? or something else?
Answers (1)
George Abrahams
on 15 Jan 2024
Hi @Alexander. This is known as constructive solid geometry (CSG). Here are a few MATLAB resources for you.
- gptoolbox on File Exchange contains two functions, mesh_boolean and mesh_boolean_winding_number.
- Iso2Mesh on File Exchange contains the surfboolean function.
- GEOMLib on File Exchange is a library for 3D CSG.
- Surface Booleans on File Exchange gives a demonstration of CSG, but actively recommends Iso2Mesh over their code.
0 Comments
See Also
Categories
Find more on Surface and Mesh Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!