INST Examples - Geomview Manual
Description: Geomview Manual

Previous: INST, Up: INST

##### 4.2.9.1 INST Examples

Here are some examples of `INST` files

         INST
              unit < xyz.vect
              transform {
                 1 0 0 0
                 0 1 0 0
                 0 0 1 0
                 1 3 0 1
              }

         { appearance { +edge  material { edgecolor 1 1 0 } }
             INST geom < mysurface.quad }

         {INST transform {: T} geom {<dodec.off}}

         { INST
              transforms
                  { LIST
                 { < some-matrices.prj }
                 { < others.prj }
                 { TLIST <still more of them> }

                  }
              geom
                  { # stuff replicated by all the above matrices
                 ...
                  }
         }

This one resembles the `origin` example in the section above, but makes the X and Y edges be 1/4 the size of the window (1/4, not 1/2, since the range of ndc X and Y coordinates is -1 to +1).

         { INST
           location ndc
           geom { < xyz.vect }
           transform { .5 0 0 0  0 .5 0 0  0 0 -.009 0   0 0 -.99 1 }
         }