#VRML V2.0 utf8 #
##ex-pointset.wrl # example of PointSet geometry # display 2 set of points (3 reds and 3 greens and one coincident r+g) # Camera Viewpoint { position 0 5 18 orientation 1 0 0 -0.24 fieldOfView 0.785398 } # Illumination PointLight{ location 0 5 0 } Shape { geometry PointSet { coord DEF pts Coordinate { point [0 0 0, 1 1 1, 2 2 2, 5 5 5] } color Color { color [ 1 0 0, 1 0 0, 1 0 0, 1 0 0 ] } } } Transform { rotation 0 -1 0 .9 children Shape { geometry PointSet { color Color { color [ 0 1 0, 0 1 0, 0 1 0, 0 1 0] } coord USE pts } } } #