- /
-
Intersection of Two Cylinders
on 11 Oct 2021
- 1
- 47
- 0
- 1
- 279
Cz=@(x,y,z) x.^2+y.^2-25;
Cy=@(x,y,z) x.^2+z.^2-25;
a=[-10 10];
intv=[a a a];
hold on
f_implicit3(Cz,intv,'c',.2)
f_implicit3(Cy,intv,'b',.2)
hold off
axis equal;view(-245,21);axis off
function f_implicit3(f,intv,col,alp)
h=fimplicit3(f,intv);
h.FaceColor=col;
h.EdgeColor='none';
h.FaceAlpha=alp;
end