Closed JonasIsensee closed 1 year ago
Correction: this doesn't work yet. I'm struggling with the correct dispatch pattern.
TriangleMesh{N}
is seen as less specific compared to Meshable{N}
.
Given that there is such a detailed hierarchy of abstract mesh types it seems odd that the
Meshable
union contains Mesh{Dim, T}
directly instead of e.g. AbstractMesh
.
superceded by #198
When plotting a vector of many meshes in 2D and 3D a large portion of time is taken up by
triangle_mesh
or more specificallydecompose_triangulate_fallback
to first decompose and then reassemble the meshes.This PR makes
triangle_mesh(::TriangleMesh)
an identity operation.EDIT: this change does not yet yield the correct dispatch. However, here's an example to show that it is worth it: