Basic HTML version of Foils prepared March 4 1998

Foil 146 IndexedFaceSet Pyramid Example I

From VRML 2 Basic Concepts and Definitions CPS616 -- Information Track of CPS -- Spring Semester 98. by Zeynep Ozdemir, Rob Baker, Meryem Ispirli, Geoffrey C. Fox

2 examples of Pyramids for Foil 146
1 Shape {
2 geometry IndexedFaceSet {
3 coordIndex [ 0,4,3,-1, 0,3,2,-1 0,2,1,-1, 0,1,4,-1, 1,3,4,-1, 1,2,3,-1]
4 coord Coordinate {
5 point [ 0 5 0, -2.5 0 -2.5, 2.5 0 -2.5, 2.5 0 2.5, -2.5 0 2.5] }
6 color Color {
7 color [ 1 1 0, 0 1 1, 1 0 1, 0 1 0, 0 0 1, 1 1 0, 0 1 1,
8 1 0 1, 1 0 0, 0 1 0, 0 0 1, 1 1 0, 0 1 1, 1 0 1, 1 0 0, 0 1 0, 0 0 1 ] } }
9 appearance Appearance {
10 material Material { diffuseColor 1 1 0 ambientIntensity 0.1 }} }
11 Defines a Simple Colored Pyramid

in Table To:


© Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Sun Nov 29 1998