Hi,
Perhaps adding the mesh=True for each of the parametric_plot3d calls will
do the job?
var("r,theta,phi");
def coordfunc(r,theta,phi,switch,shift=0):
if switch=="yin":
return
(r*sin(theta)*cos(phi)+shift,r*sin(theta)*sin(phi),r*cos(theta))
else:
return
(-r*sin(theta)*cos(phi)+shift,r*cos(theta),r*sin(theta)*sin(phi))
yin=(parametric_plot3d(coordfunc(1,theta,phi,"yin",1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(0.6,theta,phi,"yin",1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),color="yellow",mesh=True)+
parametric_plot3d(coordfunc(r,theta,-3*pi/4,"yin",1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(r,theta,3*pi/4,"yin",1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(r,pi/4,phi,"yin",1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(r,3*pi/4,phi,"yin",1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)
)
yang=(parametric_plot3d(coordfunc(1,theta,phi,"yang",-1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(0.6,theta,phi,"yang",-1),(theta,pi/4,3*pi/4),(phi,-3*pi/4,3*pi/4),color="yellow",mesh=True)+
parametric_plot3d(coordfunc(r,theta,-3*pi/4,"yang",-1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(r,theta,3*pi/4,"yang",-1),(r,0.6,1),(theta,pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(r,pi/4,phi,"yang",-1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)+
parametric_plot3d(coordfunc(r,3*pi/4,phi,"yang",-1),(r,0.6,1),(phi,-3*pi/4,3*pi/4),mesh=True)
)
show(yin+yang)
Hope this helps,
Fidel
On Friday, August 11, 2017 at 3:35:11 AM UTC-4, HG wrote:
>
> Hi,
>
> https://cocalc.com/projects/a29d19b9-8c4e-4c7e-a06d-8ae10c53a33f/files/yysagegrid.sagews
>
> I share this yin -yang... The mesh=True doesn't appear on the second
> picture mais does on the first ?
>
> Any help ?
>
> Thanks
>
> Henri
>
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.