Consider a MWE:
This is part of some diagram, so it looks unfinished, but never mind. I tried to make the example really minimal working.
\documentclass{article}%
%============================================================
\usepackage{asymptote}
\usepackage[utf8]{inputenc}
\usepackage{color}
%============================================================
\begin{document}
\begin{asy}
settings.outformat = "pdf";
settings.prc = false;
settings.render = 16;
import three;
import bsp;
texpreamble("\usepackage{euler,beton}");
size(5cm, 0);
currentprojection=orthographic((5,4,3));
path3 pl =plane((0,-2,0),(-2,0,0),(0,1,0));
path3 pl1=rotate(-28,X)*pl;
path3 pl2=rotate(-56,X)*pl;
path3 pl3=shift(-0.3*normal(pl1))*pl1;
triple[] asd=intersectionpoints(pl2,pl3);
triple A=asd[1];
triple B=asd[0];
triple[] asf=intersectionpoints(pl,pl2);
triple C=asf[1];
triple D=asf[0];
triple[] asg=intersectionpoints(pl,pl3);
triple E=asg[1];
triple F=asg[0];
path3 q11=(D -- -Y -- C-Y -- C -- cycle);
surface sq11=surface(q11);
draw(sq11,white+opacity(.6),light=nolight);
draw(D -- -Y -- C-Y -- C--cycle);
path3 q31=(D--C--A--B--cycle);
surface sq31=surface(q31);
draw(sq31,white+opacity(.6),light=nolight);
draw(D--C--A--B--cycle);
\end{asy}
\end{document}
It works. BUT I want it to be vector graphics (publishing house requirement). When I change
settings.render = 16;
into
settings.render = 0;
('cause that's what makes my graphics vector ) it brakes:
If I keep it vector (settings.render = 0;), but comment all the lines with opacity options, it works:
but this is not what I want.
How to make a vector picture with opacity option for these planes?
Commented example for your comvenience:
\documentclass{article}%
%============================================================
\usepackage{asymptote}
\usepackage[utf8]{inputenc}
\usepackage{color}
%============================================================
\begin{document}
\begin{asy}
settings.outformat = "pdf";
settings.prc = false;
settings.render = 0;
import three;
import bsp;
texpreamble("\usepackage{euler,beton}");
size(5cm, 0);
currentprojection=orthographic((5,4,3));
path3 pl =plane((0,-2,0),(-2,0,0),(0,1,0));
path3 pl1=rotate(-28,X)*pl;
path3 pl2=rotate(-56,X)*pl;
path3 pl3=shift(-0.3*normal(pl1))*pl1;
triple[] asd=intersectionpoints(pl2,pl3);
triple A=asd[1];
triple B=asd[0];
triple[] asf=intersectionpoints(pl,pl2);
triple C=asf[1];
triple D=asf[0];
triple[] asg=intersectionpoints(pl,pl3);
triple E=asg[1];
triple F=asg[0];
path3 q11=(D -- -Y -- C-Y -- C -- cycle);
surface sq11=surface(q11);
//draw(sq11,white+opacity(.6),light=nolight);
draw(D -- -Y -- C-Y -- C--cycle);
path3 q31=(D--C--A--B--cycle);
surface sq31=surface(q31);
//draw(sq31,white+opacity(.6),light=nolight);
draw(D--C--A--B--cycle);
\end{asy}
\end{document}
For references: this is a continuation of my question.
asy
with the-nosafe
flag?