ElevationGrid
ElevationGrid is a geometry node. ElevationGrid is a rectangular grid of varying height above a flat surface. ElevationGrid can contain Color, Normal and TextureCoordinate nodes. Hint: insert a Shape node before adding geometry or Appearance. You can also substitute a type-matched ProtoInstance for content.
Inheritance
Code
XML encoding
<ElevationGrid logFeature='' optimizationMode='auto' normalUpdateMode='nice' cacheMode='auto' multiResolutionLevel='1' invalidateVolume='FALSE' resolution='1' zSpacing='1' zDimension='0' lit='TRUE' xDimension='0' xSpacing='1' normalPerVertex='TRUE' solid='TRUE' colorPerVertex='TRUE' creaseAngle='0' ccw='TRUE' height='' />
Classic encoding
ElevationGrid { logFeature [""] optimizationMode ["auto"] normalUpdateMode "nice" cacheMode "auto" multiResolutionLevel 1 invalidateVolume FALSE resolution 1 zSpacing 1 zDimension 0 lit TRUE xDimension 0 xSpacing 1 normalPerVertex TRUE solid TRUE colorPerVertex TRUE creaseAngle 0 ccw TRUE height [] }
Interface
Filter: X3D only | Avalon only | All
id | Name | DataType | PartType | Default | ValueType | Description |
---|---|---|---|---|---|---|
cacheMode | SFString | initializeOnly | auto | auto; dlist; vbo; off | controls the creation of geo cache objects; auto is vbo or dlist for dynamic objects | |
ccw | SFBool | initializeOnly | TRUE | ccw = counterclockwise: ordering of vertex coordinates orientation. Hint: ccw false can reverse solid (backface culling) and normal-vector orientation. | ||
colorPerVertex | SFBool | initializeOnly | TRUE | TRUE: Color node is applied per vertex; FALSE: Color node is applied per quadrilateral | ||
creaseAngle | SFFloat | initializeOnly | 0 | [0, inf) | CreaseAngle defines the angle (in radians) for determining whether adjacent polygons are drawn with sharp edges or smooth shading. If angle between normals of two adjacent polygons is less than creaseAngle, smooth shading is rendered across the shared line segment. Hint: creaseAngle=0 means render all edges sharply, creaseAngle=3.14 means render all edges smoothly. | |
lit | SFBool | initializeOnly | TRUE | Specifies whether the Shape is lit. | ||
multiResolutionLevel | SFInt32 | initializeOnly | 1 | resolution level in progressive mesh | ||
normalPerVertex | SFBool | initializeOnly | TRUE | TRUE: Normal node is applied per vertex; FALSE: Normal node is applied per quadrilateral | ||
normalUpdateMode | SFString | initializeOnly | nice | none; fast; nice | force update of normals; nice update is with creaseAngle, fast is without | |
solid | SFBool | initializeOnly | TRUE | Specifies whether to draw only one side or both sides of polygons. Warning: default value true can completely hide geometry if viewed from wrong side. TRUE: draw only one side of polygons (backface culling on); FALSE: draw both sides of polygons (backface culling off) | ||
xDimension | SFInt32 | initializeOnly | 0 | [0, inf) | Number of elements of the grid height array in the X direction. | |
xSpacing | SFFloat | initializeOnly | 1 | (0, inf) | Indicates the distance between vertices in the X direction. Hint: total horizontal X-axis distance equals (xDimension-1) * xSpacing. | |
zDimension | SFInt32 | initializeOnly | 0 | [0, inf) | Number of elements of the grid height array in the Z direction. | |
zSpacing | SFFloat | initializeOnly | 1 | (0, inf) | Indicates the distance between vertices in the X direction. Hint: total vertical Z-axis distance equals (zDimension-1) * zSpacing. | |
attrib | MFNode | inputOutput | VertexAttribute | If the "attrib" field is not empty it shall contain a list of per-vertex attribute information for programmable shaders | ||
color | SFNode | inputOutput | Color | Specifies per-vertex or per-quadrilateral colours for the ElevationGrid node depending on the value of colorPerVertex. If the color field is NULL, the node is rendered with the overall attributes of the Shape node. | ||
fogCoord | SFNode | inputOutput | FogCoordinate | If not NULL, it shall contain a FogCoordinate node. | ||
height | MFFloat | inputOutput | (-inf, inf) | Grid array of height vertices along upward Y direction, with xDimension rows and zDimension columns. | ||
invalidateVolume | SFBool | inputOutput | FALSE | set volume invalid | ||
logFeature | MFString | inputOutput | state, child, parent, route, eventIn, eventOut | controls the logging of changes, state: log state changes (e.g. live), child: log child add/remove, parent: log parent add/remove, route: log route add/remove; eventIn: log receiving of events, eventOut: log sending of events: guiView, runtime system should create node-view, guiEdit: runtime system should create node-editeverything: log everything | ||
metadata | SFNode | inputOutput | MetadataObject | container for payload metadata inside MetadataSet element | ||
normal | SFNode | inputOutput | Normal | Specifies per-vertex or per-quadrilateral normals for the ElevationGrid node. If the normal field is NULL, the browser automatically generates normals. | ||
optimizationMode | MFString | inputOutput | auto | auto; all, none, sharedVertex; stripFan; vertexResort; reduceIndexSize; singleIndex | optimization mode settings; used leading +/- to switch modes on and off | |
resolution | SFFloat | inputOutput | 1 | factor for subdivision of mesh | ||
texCoord | SFNode | inputOutput | TextureCoordinateBase | Specifies per-vertex texture coordinates for the ElevationGrid node. If texCoord is NULL, default texture coordinates are applied to the geometry. Default texture coordinates range from (0,0) at the first vertex to (1,1) at the last vertex. |