VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere...
-
Upload
randell-stafford -
Category
Documents
-
view
215 -
download
0
Transcript of VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere...
![Page 1: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/1.jpg)
VRML Shapes and Geometry
![Page 2: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/2.jpg)
Learning Objectives
• Understand how to use: Box, Cone, Cylinder, and Sphere
• Understand how to use Elevation Grid and Indexed Face Set
• Understand how to use Text
![Page 3: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/3.jpg)
The Shape Node
• Shape { – exposedField SFNode appearance
NULL – exposedField SFNode geometry
NULL
• }
![Page 4: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/4.jpg)
Shapes and Geometry Nodes• Box • Cone • Cylinder • Sphere • ElevationGrid • IndexedFaceSet • Text • Extrusion • IndexedLineSet • PointSet
![Page 5: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/5.jpg)
Box
• Box { field SFVec3f size 2 2 2 # (0, ) }
![Page 6: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/6.jpg)
Cone
• Cone { – field SFFloat bottomRadius
1 # (0, ) – field SFFloat height 2 # (0, ) – field SFBool side TRUE – field SFBool bottom TRUE
• }
![Page 7: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/7.jpg)
Cylinder
• Cylinder { – field SFBool bottom TRUE – field SFFloat height 2 #
(0, ) – field SFFloat radius 1 #
(0, ) – field SFBool side TRUE – field SFBool top TRUE
• }
![Page 8: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/8.jpg)
Sphere• Sphere {field SFFloat radius 1 # (0, ) }
![Page 9: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/9.jpg)
Elevation Grid• ElevationGrid {
– 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 #
[0, ] – field SFBool normalPerVertex TRUE – field SFBool solid TRUE – field SFInt32 xDimension 0 # [0, ) – field SFFloat xSpacing 1.0 # (0, ) – field SFInt32 zDimension 0 # [0, ) – field SFFloat zSpacing 1.0 # (0, ) }
![Page 10: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/10.jpg)
![Page 11: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/11.jpg)
Indexed Face Set• IndexedFaceSet {
– exposedField SFNode color NULL – exposedField SFNode coord NULL – exposedField SFNode normal NULL – exposedField SFNode texCoord NULL – field SFBool ccw TRUE – field MFInt32 colorIndex [] # [-1, ) – field SFBool colorPerVertex TRUE – field SFBool convex TRUE – field MFInt32 coordIndex [] # [-1, ) – field SFFloat creaseAngle 0 # [0, ) – field MFInt32 normalIndex [] # [-1, ) – field SFBool normalPerVertex TRUE – field SFBool solid TRUE – field MFInt32 texCoordIndex [] # [-1, ) }
![Page 12: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/12.jpg)
Faces for Face Set
a. at least three non-coincident vertices;
b. vertices that define a planar polygon;
c. vertices that define a non-self-intersecting polygon.
![Page 13: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/13.jpg)
Text
• Text { – exposedField MFString string [] – exposedField SFNode fontStyle NULL– exposedField MFFloat length [] # [0, )– exposedField SFFloat maxExtent 0.0 #
[0, )
• }
![Page 14: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/14.jpg)
Text Style• FontStyle {
– field MFString family "SERIF" – field SFString style "PLAIN" – field MFString justify "BEGIN" – field SFString language "" – field SFBool horizontal TRUE – field SFBool leftToRight TRUE – field SFBool topToBottom TRUE – field SFFloat size 1.0 # (0, ) – field SFFloat spacing 1.0 # [0, )
• }
SERIF, SANS or TYPEWRITERPLAIN, BOLD or ITALICBEGIN, MIDDLE or END
![Page 15: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/15.jpg)
![Page 16: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/16.jpg)
Extrusion
• Extrusion { – SFBool beginCap TRUE – field SFBool ccw TRUE – field SFBool convex – TRUE field SFFloat creaseAngle 0 # [0, ) – field MFVec2f crossSection [ 1 1, 1 -1, -1 -1, -1 1, 1
1 ] # (- , ) – field SFBool endCap TRUE – field MFRotation orientation 0 0 1 0 # [-1,1],(- , )– field MFVec2f scale 1 1 # (0, ) – field SFBool solid TRUE – field MFVec3f spine [ 0 0 0, 0 1 0 ] # (- , )
• }
![Page 17: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/17.jpg)
Indexed Line Set
• IndexedLineSet { – exposedField SFNode color NULL– exposedField SFNode coord NULL – field MFInt32 colorIndex [] # [-1, ) – field SFBool colorPerVertex TRUE – field MFInt32 coordIndex [] # [-1, )
• }
![Page 18: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/18.jpg)
Point Set
• PointSet { – exposedField SFNode color NULL– exposedField SFNode coord NULL
• }
![Page 19: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/19.jpg)
Learning Objectives
• Understand how to use: Box, Cone, Cylinder, and Sphere
• Understand how to use Elevation Grid and Indexed Face Set
• Understand how to use Text
![Page 20: VRML Shapes and Geometry. Learning Objectives Understand how to use: Box, Cone, Cylinder, and Sphere Understand how to use Elevation Grid and Indexed.](https://reader035.fdocuments.net/reader035/viewer/2022072014/56649e8a5503460f94b8ed34/html5/thumbnails/20.jpg)