InitialObjectDescriptor { objectDescriptorID 1 audioProfileLevelIndication 255 visualProfileLevelIndication 255 sceneProfileLevelIndication 254 graphicsProfileLevelIndication 254 ODProfileLevelIndication 255 esDescr [ ES_Descriptor { ES_ID 1 decConfigDescr DecoderConfigDescriptor { streamType 3 decSpecificInfo BIFSConfig { isCommandStream true pixelMetric true pixelWidth 420 pixelHeight 420 } } } ] } OrderedGroup { children [ Background2D { backColor 1 1 1 } WorldInfo { info [ "This test shows a bit more how to use the IndexedLineSet2D node with different line color modes." "Similarly to the IndexedFaceSet2D, one can give a color to each point." "The result will be a line with a gradient color" "" "GPAC Regression Tests" "(C) 2002-2006 GPAC Team"] title "IndexedLineSet2D" } Transform2D { scale 0.5 0.5 translation -120 80 children [ Shape { appearance DEF APP Appearance { material Material2D { lineProps LineProperties { lineColor 0.1 0.1 0.8 width 10 } } } geometry IndexedLineSet2D { colorIndex [1 0 2 1 -1 1 0 2 1] coordIndex [0 1 2 0 -1 3 4 5 3] color Color { color [1 1 0 1 0 1 0 1 1] } coord DEF COORD Coordinate2D { point [-100 -100 0 -10 100 -100 100 100 0 10 -100 100] } } } ] } Transform2D { scale 0.5 0.5 translation 120 80 children [ Shape { appearance USE APP geometry IndexedLineSet2D { colorIndex [1 0 2 -1 0 2 1] colorPerVertex FALSE coordIndex [0 1 2 0 -1 3 4 5 3] color Color { color [1 1 0 1 0 1 0 1 1] } coord USE COORD } } ] } Transform2D { scale 0.5 0.5 translation 0 -80 children [ Shape { appearance USE APP geometry IndexedLineSet2D { colorPerVertex FALSE coordIndex [0 1 2 0 -1 3 4 5 3] coord USE COORD } } ] } ] }