next up previous
Next: Določitev koordinat točk Up: Zapis v VRML Previous: Zapis v VRML

Primer datoteke VRML

 

VRML datoteka objekta na sliki 3.1 (stran gif).

#VRML V1.0 ascii
Coordinate3 {
        point[  0 0 0,
                3 0 0,
                3 2 0,
                0 2 0,
                0 0 3,
                3 0 3,
                3 2 3,
                0 2 3,
                1.5 1 5 ]
             }
Material{
        diffuseColor 1 0 0
        }

IndexedFaceSet {
        coordIndex[     0, 1, 5, 4, -1, 
                        1, 2, 6, 5, -1,
                        2, 3, 7, 6, -1,
                        3, 0, 4, 7, -1,
                        0, 1, 2, 3, -1 ]
              }
Material{
        diffuseColor 0 1 0
        }

IndexedFaceSet {
        coordIndex[     4, 5, 8, -1,
                        5, 6, 8, -1,
                        6, 7, 8, -1,
                        7, 4, 8, -1 ]
              }




next up previous
Next: Določitev koordinat točk Up: Zapis v VRML Previous: Zapis v VRML

Janez Krek
Mon Oct 18 11:05:49 CEST 1999