<<VRML 2.0 - An Introductory view by examples

PointSet

[example]                                                [run-example] 

This node specifies two other nodes, color and coordinate nodes, defining a colored point net.

{
exposedField SFNode color NULL # a color node
exposedField SFNode coord NULL # a coordinate node
}


Usage :

Shape{
   geometry PointSet{coord Coordinate 
                           { point [1 1 1, 3 3 3]} ; points coordinate
                     color [ 1 0 0, 0 .5 0]         ; color for each point
                     }
      }