home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Late Night VRML 2.0 with Java CD-ROM
/
code.zip
/
Ch15
/
NurbsCurve.wrl
< prev
next >
Wrap
Text File
|
1997-01-23
|
793b
|
28 lines
#VRML V2.0 utf8
PROTO NurbsCurve [ field SFBool debug FALSE
field SFInt32 segments 20
field MFFloat knotSequence 0
field MFFloat controlPoints 0 ] {
DEF ILS IndexedLineSet {
coord
Coordinate { }
coordIndex []
}
DEF curve Script {
field SFBool debug IS debug
field SFInt32 segments IS segments
field MFFloat knotSequence IS knotSequence
field MFFloat controlPoints IS controlPoints
eventOut SFNode coord_changed
eventOut MFInt32 coordIndex_changed
url "NurbsCurve.class"
}
ROUTE curve.coord_changed TO ILS.set_coord
ROUTE curve.coordIndex_changed TO ILS.set_coordIndex
}