10.2.16 Mtransform3D



  \begin{texgraph}[name=Mtransform3D,export=pgf]
   view(-5,5,-3,6), Marges(0,0,0,0), size(7.5),
   viewDir(115,70),
   P:=shift3d(Pyramide( [Origin,M(1,-1,0),M(3,1,0),
                  M(3,3,0),M(1,4,0)],M(1,1,3)),2*vecJ),
   miroir:=[M(-4,0,0),M(4,0,0),M(4,0,5),M(-4,0,5),jump],
   P’:=reverse3d( Mtransform3D( P,
                     matrix3d(sym3d(M,[Origin,vecJ])))),
   FillStyle:=full, FillColor:=brown, Width:=8,
   DrawFacet( P’, [color:=FillColor]),
   DrawFacet( miroir,
                  [FillOpacity:=0.5, color:=lightgray]
            ),
   DrawPoly(P,4)
  \end{texgraph}

 PIC



The Mtransform3D() command