home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Late Night VRML 2.0 with Java CD-ROM
/
code.zip
/
Ch15
/
Cone.wrl
< prev
next >
Wrap
Text File
|
1997-01-29
|
1KB
|
45 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 0 5
orientation 0 0 1 0
fieldOfView 0.785398
description "NURBS Cone"
}
Shape {
appearance
Appearance {
material
Material { diffuseColor 1 1 0 }
}
geometry
NurbsRevolve { # Cone
debug FALSE
segments 40
profileSegments 10
profileKnotSequence [ 0.0, 0.0,
0.5, 0.5,
1.0, 1.0 ]
profileControlPoints [ 0 0.866 0 1,
-1 -0.866 0 1,
-1 -0.866 0 1,
0 -0.866 0 1, ]
}
}