lines.wrl 464 B

123456789101112131415161718192021222324252627282930313233
  1. #VRML V2.0 utf8
  2. #IndexedLineSet example
  3. Shape {
  4. geometry IndexedLineSet {
  5. coord Coordinate {
  6. point [
  7. -1.0 -1.0 0.0, #vertex 0
  8. 1.0 1.0 0.0, #vertex 1
  9. 1.0 -1.0 0.0, #vertex 2
  10. ]
  11. }
  12. colorPerVertex FALSE
  13. color Color {
  14. color [
  15. 1.0 0.0 0.0, #red
  16. 0.0 1.0 0.0, #green
  17. 0.0 0.0 1.0, #blue
  18. ]
  19. }
  20. coordIndex [
  21. #red line
  22. 0, 1, -1,
  23. #green line
  24. 1, 2, -1,
  25. #blue line
  26. 2, 0, -1
  27. ]
  28. colorIndex [
  29. 2, 1, 0
  30. ]
  31. }
  32. }