In Asymptote 3D, I need to draw surfaces with more than 4 vertices, but when I do, either it simply doesn't work (I can't reproduce this in a simple example, but can provide a more complicated case where this happens if it is helpful) or a seam appears, as in the example below:
settings.prc = false; defaultpen(fontsize(10pt)); import three; import graph3; import patterns; size(11cm,0); currentprojection=perspective((10,-20,10)); currentlight = (3,-2,3); render render = render(compression=Low, merge = true); draw(surface((0,0,0) -- (1,0,0) -- (1,1,0) -- (0.5,1.5,0) -- (0,1,0) -- cycle), lightblue+opacity(0.5), render);
Running this command
asy -noprc -render 0 -f pdf example.asy
gives the following image:
Is there a way to get rid of the dark blue "seam?"