home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Windows 95.com 1996 September
/
WIN95_09962.iso
/
vrml
/
MWE105.ZIP
/
EExamples
/
Reflect.vxr
< prev
next >
Wrap
Text File
|
1996-01-25
|
552b
|
30 lines
#VRML V1.0 ascii
Separator {
# Options: ON OFF AUTO
renderCulling AUTO
OUTPUT_TO Reflect.wrl
DEF BackgroundColor Info {
string ".1 .2 .6"
}
Material {
diffuseColor =Color("yellow")
}
# Define one triangle
DEF object Coordinate3 {
point [1 0 0, 2 0 0, 2 1 0 ] # MFVec3f
}
# Reflect the triangle and append (two triangles)
APPEND object:point convert3D(convert4D(object:point)*yzReflect())
# Now display the two triangles
IndexedFaceSet {
coordIndex [0, 1, 2, 0, -1, 3, 4, 5, 3, -1]
}
}