next up previous contents index
Next: 2.2 The Main Window Up: 2. Using the program Previous: 2. Using the program   Contents   Index

2.1 Starting the Application

The main application program is called vdog. When you start it you get two windows. The main window of the application (called ViewDog). has the menu point File/Load, which allows you to open new input files (see figure 2.1).

Figure 2.1: Graphical User Interface when started
\begin{figure}\centering\includegraphics{gui1.ps}
\end{figure}

Let us for example load the file nurbsurf_bilinear1.dat (the file selector box is shown in figure 2.2). This example file contains a simple bilinear surface with a \(2*2\) texture.

Figure 2.2: File Selector Box
\begin{figure}\centering\includegraphics{fsel1.ps}
\end{figure}

Just to give you an idea of the format of the input files, here is the content of the above file:

Example 1: (taken from: data/examples/nurbsurf_bilinear1.dat (7.25))

surf1 = NURBSURF
( 
  (0., 0., 1., 1.),
  (0., 0., 1., 1.),
  (
    ((0., 0., 0., 1.), (10., 0., 10., 1.)),
    ((0., 10., 10., 1.), (10., 10., 0., 1.))
  )
);
teximg1 = TEXIMAGE2D(
  (
    ((1.0,0.0,0.0,0.4), (0.0,1.0,0.0,0.4)),
    ((0.0,0.0,1.0,0.4), (1.0,1.0,0.0,0.4))
  )
);
SCENEROOT = SCENENODE ( 
  (), 
  ( ATTRIBS(teximg1,USETEXIMG(2),USETEXMAGTONEAREST(1),
            USETEXMINTONEAREST(1),USETEXWRAPX(1),USETEXWRAPY(1),
            TEX2TRANSFORMS(TRNSF3PT((0,0,0),(8.0,0,0),(0,8.0,0)))
           )
  ), 
  (surf1)
);


next up previous contents index
Next: 2.2 The Main Window Up: 2. Using the program Previous: 2. Using the program   Contents   Index
Administrator 2002-01-20