home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Late Night VRML 2.0 with Java CD-ROM
/
code.zip
/
Ch15
/
WineGlass.wrl
< prev
Wrap
Text File
|
1997-01-29
|
2KB
|
52 lines
#VRML V2.0 utf8
EXTERNPROTO NurbsRevolve [ field SFBool debug
field SFInt32 segments
field SFFloat minAngle
field SFFloat maxAngle
field SFInt32 profileSegments
field MFFloat profileKnotSequence
field MFFloat profileControlPoints
field SFBool ccw
field SFFloat creaseAngle
field SFBool solid ]
"http://www.ocnus.com/nurbs/NurbsRevolve.wrl"
Viewpoint {
position 0 1 3
orientation 0 0 1 0
fieldOfView 0.785398
description "NURBS Wine Glass"
}
Shape {
appearance
Appearance {
material
Material { diffuseColor 1 1 0 }
}
geometry
NurbsRevolve { # Wine Glass
debug FALSE
segments 20
profileSegments 20
profileKnotSequence [ 0.0, 0.0, 0.0,
0.14286, 0.28571, 0.42857,
0.57143, 0.71429, 0.85714,
1.0, 1.0, 1.0, ]
profileControlPoints [ 0.00 0.00 0.0 1.0,
0.40 0.00 0.0 1.0,
0.40 0.00 0.0 1.0,
0.02 0.25 0.0 1.0,
0.35 1.00 0.0 1.0,
0.35 2.00 0.0 1.0,
0.30 2.00 0.0 1.0,
0.30 0.80 0.0 1.0,
0.00 0.70 0.0 1.0, ]
}
}