%20%E7%9A%84%E5%A1%AB%E5%85%85%E5%9B%BE%E6%A1%88%2F%E6%B8%90%E8%BF%91%E7%BA%BF%E4%B8%AD%E7%9A%84%E8%A1%A8%E9%9D%A2.png)
我可以获得简单二维路径的图案填充:
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 曲面添加填充图案?