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
Shape {
geometry IndexedFaceSet {
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]
coord Coordinate {
point [ 0 5 0, -2.5 0 -2.5, 2.5 0 -2.5, 2.5 0 2.5, -2.5 0 2.5] }
color Color {
color [ 1 1 0, 0 1 1, 1 0 1, 0 1 0, 0 0 1, 1 1 0, 0 1 1,
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 ] } }
appearance Appearance {
material Material { diffuseColor 1 1 0 ambientIntensity 0.1 }} }
Defines a Simple Colored Pyramid



© 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