Table of contents Chapter index Previous slide Next slide 233
Syntax: ElevationGrid

Controlling color on coordinate-based geometry
Syntax: ElevationGrid
  • An ElevationGrid geometry node creates terrains
  • color - list of colors
  • colorPerVertex - control color binding
  • Always binds one color to each grid point or square, in order
  • Shape {
    
        appearance Appearance { . . . }
    
        geometry ElevationGrid {
    
            . . .
    
            height [ . . . ]
    
            color Color { . . . }
    
            colorPerVertex TRUE
    
        }
    
    }