我可以获得简单二维路径的图案填充:
settings.outformat="pdf";
unitsize(1cm);
import patterns;
path aaa = (0,0)..(3,-1)..(6,0)--cycle;
add("hatch", hatch());
filldraw(aaa, pattern("hatch"));
shipout(currentpicture.fit());
如果我想在 3D 中使用 path3 做同样的事情,它不起作用:
settings.outformat="pdf";
settings.render=16;
settings.prc = false;
unitsize(1cm);
import graph3;
import three;
import patterns;
add("hatch", hatch());
path3 bbb = (0,0,0)..(3,-1,0)..(6,0,0)--cycle;
draw(bbb, pattern("hatch"));
shipout(currentpicture.fit());
如何向 3D 曲面添加填充图案?