Original Spec| Sample

定義

IndexedLineSet { 
  eventIn       MFInt32 set_colorIndex
  eventIn       MFInt32 set_coordIndex
  exposedField  SFNode  color             NULL
  exposedField  SFNode  coord             NULL
  field         MFInt32 colorIndex        []     # [-1,)
  field         SFBool  colorPerVertex    TRUE
  field         MFInt32 coordIndex        []     # [-1,)
}
線の集合を表示します。線の太さはブラウザに依存します。
set_colorIndex
後述のcolorIndexを設定するイベント
set_coordIndex
後述のcoordIndexを設定するイベント
color
colorIndexで使う色の集合、,Colorノードを使います (参考IndexedFaceSet)
coord
coordIndexで座標の集合、Coordinateノードを使います。
colorIndex
color中で何番目の色を使うかの指定。
colorPerVertex
頂点毎に色を指定するかどうかの指定。 真の場合線上でグラデュエーションされます。
coordIndex
coord中で何番目の座標を使って線を作るかの指定。

サンプル

#VRML V2.0 utf8
Shape {
  geometry IndexedLineSet {
    coord Coordinate {
      point [0 .2 1, 1 0 0, 0 1 0, -1 0 0]
    }
    coordIndex [
      0 1 -1,
      0 2 -1,
      0 3 -1,
      1 2 -1,
      1 3 -1,
      2 3 -1
    ]
  }
}
#http://vrmlbyhand.hoops.ne.jp/ref/IndexedLineSet1.wrl