Class: ImageGeometry

X3DOM
Component: Geometry3D

x3dom.nodeTypes. ImageGeometry

The image geometry node loads data stored in an image file.

HTML Encoding and Default Values

<ImageGeometry ccw='true' color='x3dom.nodeTypes.X3DTextureNode' coord='x3dom.nodeTypes.X3DTextureNode' implicitMeshSize='256,256' index='x3dom.nodeTypes.X3DTextureNode' lit='true' metadata='X3DMetadataObject' normal='x3dom.nodeTypes.X3DTextureNode' numColorComponents='3' numTexCoordComponents='2' position='0,0,0' primType='['TRIANGLES']' size='1,1,1' solid='true' texCoord='x3dom.nodeTypes.X3DTextureNode' useGeoCache='true' vertexCount='[0]' ></ImageGeometry>

Inheritance


Constructor

ImageGeometry(ctx)

Constructor for ImageGeometry

Parameters:
Name Type Argument Default Description
ctx Object <optional>
null context object, containing initial settings like namespace

Fields

These are the X3D / X3DOM fields of this node. Values should usually be received / set as strings via DOM functions (i.e., using setAttribute("myFieldName", "myFieldValue") and getAttribute("myFieldName")).
Name Type Default Value Range Inheritance Standard Description
ccw SFBool true X3DBinaryContainerGeometryNode The ccw field defines the ordering of the vertex coordinates of the geometry with respect to user-given or automatically generated normal vectors used in the lighting model equations.
color SFNode X3DTextureNode Specifies the image file that contains the color data.
coord MFNode X3DTextureNode Specifies the image file that contains the coord data.
implicitMeshSize SFVec2f 256,256
index SFNode X3DTextureNode Specifies the image file that contains the index data.
lit SFBool true X3DBinaryContainerGeometryNode Specifies whether this geometry should be rendered with or without lighting.
metadata SFNode X3DMetadataObject X3DBinaryContainerGeometryNode Field to add metadata information
normal SFNode X3DTextureNode Specifies the image file that contains the normal data.
numColorComponents SFInt32 3 Specifies the number of color components.
numTexCoordComponents SFInt32 2 Specifies the number of texture coordinate components.
position SFVec3f 0,0,0 X3DBinaryContainerGeometryNode
primType MFString ['TRIANGLES'] X3DBinaryContainerGeometryNode
size SFVec3f 1,1,1 X3DBinaryContainerGeometryNode
solid SFBool true X3DBinaryContainerGeometryNode Specifies whether backface-culling is used. If solid is TRUE only front-faces are drawn.
texCoord SFNode X3DTextureNode Specifies the image file that contains the texcoord data.
useGeoCache SFBool true X3DBinaryContainerGeometryNode Most geo primitives use geo cache and others might later on, but one should be able to disable cache per geometry node.
vertexCount MFInt32 [0] X3DBinaryContainerGeometryNode