11.1.1 Build3D

This command define the list of 3D elements that compose the scene. That command does not draw anything; as it can be seen in the example file display3d.teg, the different scene are built in macros, and one graphic element is enough, it contains the instruction Display3D(). That command calculate the scene (more precisely: it builds a display tree), and display the scene. If the viewing angle is changed, only the command Display3D() is updated, and not the command Build3D().

The general syntax for Build3D is the following:



  \begin{texgraph}[name=Build3D, export=eps]
   view(-5.5,5.5,-5.5,5.5),Marges(0,0,0,0),
   size(7.5),background(full,beige),
   z:=-2,
   Build3D(
     bdPlan([M(0,0,z), vecK],
       [color:=gold,border:=0,bordercolor:=black]),
     bdCylinder(M(-2,3,2), 7*M(2/3,-1,-2/3), 1,
       [color:=slategray,smooth:=1]),
     bdSphere(Origin, 3,
       [color:=darkseagreen, clip:=-1,
        clipwin:=[M(2,1,1),M(-1,-1,-1)],
        smooth:=1, backculling:=0]),
     bdCercle(M(0,0,z),sqrt(5),vecK,
       [color:=blue, width:=12]),
     bdAxes([0,0],
       [hidden:=1, arrows:=1,color:=firebrick])
      ),
   Display3D()
  \end{texgraph}

 PIC



Build3D