主题:  扩充节点的一个例子

medianumen

职务:普通成员
等级:1
金币:1.0
发贴:133
注册:2000/10/17 14:09:58
#12000/12/25 14:46:02
#VRML V2.0 utf8

PROTO TwoColorTable [ field SFColor legColor .8 .4 .7
field SFColor topColor .6 .6 .1]
{


Transform {
children [
Transform { #桌面
translation 0 0.6 0
children
Shape {
appearance Appearance {
material Material { diffuseColor IS topColor }
}
geometry Box { size 1.2 0.2 1.2 }
}
}

Transform { #第一条桌腿
translation -.5 0 -.5
children [
DEF Leg Shape {
appearance Appearance {
material Material { diffuseColor IS legColor }
}
geometry Cylinder { height 1 radius .1 }
}
]
}



kun_5d

职务:普通成员
等级:1
金币:0.0
发贴:80
注册:2000/10/31 10:24:17
#22000/12/25 15:17:33
好久不见,
多谢你的作品,
希望以后能够多看到这样的东东,
不过我现在有点看不懂.
嘻嘻,
我会努力的,
生蛋快乐.



medianumen

职务:普通成员
等级:1
金币:1.0
发贴:133
注册:2000/10/17 14:09:58
#32000/12/27 10:00:58
是啊,我现在不太经常来了,因为最近的工程特别的多,都快累死我了,过了元旦就好了,我一定多整理一些东西,和大家一起探讨