Presentation is loading. Please wait.

Presentation is loading. Please wait.

VRML Shapes.

Similar presentations


Presentation on theme: "VRML Shapes."— Presentation transcript:

1 VRML Shapes

2 Box Box { field SFVec3f size 2 2 2 } Centered at (0, 0, 0)
Outside only

3 Sphere Sphere { field SFFloat radius 1 }

4 Cone Cone { field SFFloat bottomRadius 1 field SFFloat height 2
field SFBool side TRUE field SFBool bottom TRUE } Side and bottom refer to existence of these parts of the geometry Defined for Outside only

5 Cylinder Cylinder { field SFBool bottom TRUE field SFFloat height 2
field SFFloat radius 1 field SFBool side TRUE field SFBool top TRUE } Outside only

6 VRML Shapes

7 ElevationGrid ElevationGrid { eventIn MFFloat set_height
exposedField SFNode color NULL exposedField SFNode normal NULL exposedField SFNode texCoord NULL field MFFloat height [] # (-,) field SFBool ccw TRUE field SFBool colorPerVertex TRUE field SFFloat creaseAngle # [0,] field SFBool normalPerVertex TRUE field SFBool solid TRUE field SFInt32 xDimension # [0,) field SFFloat xSpacing # (0,) field SFInt32 zDimension # [0,) field SFFloat zSpacing # (0,) }

8

9 IndexedFaceSet IndexedFaceSet { eventIn MFInt32 set_colorIndex
eventIn MFInt32 set_coordIndex eventIn MFInt32 set_normalIndex eventIn MFInt32 set_texCoordIndex exposedField SFNode color NULL exposedField SFNode coord NULL exposedField SFNode normal NULL exposedField SFNode texCoord NULL field SFBool ccw TRUE field MFInt32 colorIndex field SFBool colorPerVertex field SFBool convex field MFInt32 coordIndex [] field SFFloat creaseAngle field MFInt32 normalIndex [] field SFBool normalPerVertex TRUE field SFBool solid TRUE field MFInt32 texCoordIndex [] }

10 Indexed Face Set Example
#VRML V2.0 utf8 Shape { geometry IndexedFaceSet { coordIndex [ 0, 1, 3, -1, 0, 2, 3, -1 ] coord Coordinate { point [ 0 0 0, 1 0 0, , ] } color Color { color [ , , , ] normal Normal { vector [ 0 0 1, 0 0 1, 0 0 1, ] } texCoord TextureCoordinate { point [ 0 0, 1 0, 1 0.4, 1 1 ] appearance Appearance { material Material { transparency 0.5 } texture PixelTexture { image xFF 0x80 0x80 0xFF

11


Download ppt "VRML Shapes."

Similar presentations


Ads by Google