Why is tetramesh painfully slow?
Show older comments
I have a tetrahedral mesh with 35000+ vertices and 60,000+ faces. When I use tetramesh to plot it, it takes like 10 minutes.
If I use freeboundary to exctract that triangular mesh of the surface, and use trisurf, it is extremely fast, like less than a second. Of course number of data is reduced maybe by half but I don't think this is the resason.
Because if I use pdeplot3d to plot the tetrahedral mesh, similarly, it is super-fast. Less than a second also.
It seems like tetramesh is just so slow. Why?
I can't use pdeplot3d because it only accepts nodel data for its colormap. I need to use the faces for the colormap data.
10 Comments
Matt J
on 25 Apr 2022
You haven't provided any code or example that let's us verify and test what you are seeing.
Pelajar UM
on 25 Apr 2022
Bruno Luong
on 25 Apr 2022
@Matt J you can try this
n = 32000;
x = rand([n 1]);
y = rand([n 1]);
z = rand([n 1]);
DT = delaunayTriangulation(x,y,z);
tetramesh(DT)
Pelajar UM
on 25 Apr 2022
Matt J
on 25 Apr 2022
Pelajar UM
on 25 Apr 2022
Edited: Pelajar UM
on 25 Apr 2022
Bruno Luong
on 25 Apr 2022
Edited: Bruno Luong
on 25 Apr 2022
@Pelajar UM" delaunayTriangulation is for convex hull only. So the detail of the geometry are lost. "
I don't have any "detail geometry", we just try to emulate the slownest of tetramesh for high number of vertices that you have reported.
"This problem is not specific to any particular mesh"
I'm lost, so my random mesh is OK or not to illustrate the issue?
If you have more realistic data, then please do provide (I think it's doesn't matter much on the phenomenon).
Obviously tetramesh has to more work hard to handle transparency and color supperposition in the volumic depth, or simple it is not well implemented. Who knows (beside TMW but they rarely comment here)?
Pelajar UM
on 25 Apr 2022
Bruno Luong
on 25 Apr 2022
Edited: Bruno Luong
on 25 Apr 2022
I know well what the convex hull is, My data are random volume not a specific geometry. Does the convex volume matter for the slownest you want to point out? Yes or no?
Pelajar UM
on 25 Apr 2022
Answers (0)
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!
