I am trying to discretize a polar surface using a combination of ParametricPlot3D
and DiscretizeGraphics
. Unfortunately, the mesh facets refuse to connect along the u=0, u=2Pi line. This is clearly shown by FindMeshDefects
.
test = DiscretizeGraphics[
ParametricPlot3D[{Cos[u], Sin[u], v}, {u, 0, 2 \[Pi]}, {v, 0, 1},
PlotPoints -> {155, 20}, MaxRecursion -> 0, Mesh -> None,
MeshStyle -> None]]
test // FindMeshDefects
I know that specialized tools exist for surfaces of revolution, but this is meant to be just a minimal example. I also know of approaches using Implicit Regions, that I would like to avoid due to the bad quality of the meshing it produces.
I realize that the problem is due to the fact that DiscretizeGraphics
computes distinct edges for u=0 and u=2Pi, yet I believe that it might be possible to identify said edges using a small distance criterion, yet I fail to do so algorithmically.
thanks in advance for the advice