#VRML V2.0 utf8 #Prototype of single compartment. PROTO COMPT[ exposedField SFInt32 state 1 exposedField SFVec3f translation 0 0 0 field MFVec3f endpoints [0 0 0, 1 1 1] field MFVec2f xsection [0 0, 0 1, 1 1, 1 0, 0 0] field MFVec2f scale .5 .5 ] { EXTERNPROTO GLASS[] "glass.wrl" EXTERNPROTO BEAD[field SFColor color] "bead.wrl" Transform { translation IS translation children [ Shape { geometry Extrusion { spine IS endpoints crossSection IS xsection scale IS scale } appearance Appearance { material BEAD {color 0 1 0} } } ] } } COMPT {}