Está en la página 1de 1

#VRML V2.

0 utf8
#IndexedLineSet example
Shape {
geometry IndexedLineSet {
coord Coordinate {
point [
-1 -1 0, #vertex 0
1 1 0, #vertex 1
1 -1 0, #vertex 2
]
}
color Color {
color [
1 0 0, #red
0 1 0, #blue
0 0 1
]
}
coordIndex [
#red line
0, 1, -1,
#green line
1, 2, -1,
#blue line
2, 0, -1
]
colorIndex [
2, 2, 2
]
colorPerVertex FALSE
# color per polyline
}
}

También podría gustarte