vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢这是门的位置DEF zm Transform { translation -539.9 15 516.8 rotation -1 0 0 -1.571 children [ Transform { translation 0 2.5
来源:学生作业帮助网 编辑:作业帮 时间:2024/06/21 17:44:02
![vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢这是门的位置DEF zm Transform { translation -539.9 15 516.8 rotation -1 0 0 -1.571 children [ Transform { translation 0 2.5](/uploads/image/z/12532020-60-0.jpg?t=vrml%E5%AE%9E%E7%8E%B0%E9%97%A8%E7%9A%84%E5%BC%80%E5%85%B3%E5%8A%9F%E8%83%BD%2C%E6%97%8B%E8%BD%AC%E8%BD%B4%E4%B8%8D%E5%9C%A8%E4%B8%AD%E9%97%B4%2C%E5%9C%A8%E5%B7%A6%E4%BE%A7%2C%E6%9C%80%E5%A5%BD%E5%86%99%E6%98%8E%E6%97%8B%E8%BD%AC%E8%BD%B4%E6%98%AF%E6%80%8E%E6%A0%B7%E8%AE%BE%E7%BD%AE%E7%9A%84%2C%E8%B0%A2%E8%B0%A2%E8%BF%99%E6%98%AF%E9%97%A8%E7%9A%84%E4%BD%8D%E7%BD%AEDEF+zm+Transform+%7B++translation+-539.9+15+516.8++rotation+-1+0+0+-1.571++children+%5B++++++Transform+%7B++++++++translation+0+2.5)
vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢这是门的位置DEF zm Transform { translation -539.9 15 516.8 rotation -1 0 0 -1.571 children [ Transform { translation 0 2.5
vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢
这是门的位置
DEF zm Transform {
translation -539.9 15 516.8
rotation -1 0 0 -1.571
children [
Transform {
translation 0 2.5 0
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.588 0.588 0.588
ambientIntensity 1.0
specularColor 0 0 0
shininess 0.145
transparency 0
}
}
geometry Box { size 50 5 30 }
}
] }
]
}
vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢这是门的位置DEF zm Transform { translation -539.9 15 516.8 rotation -1 0 0 -1.571 children [ Transform { translation 0 2.5
设置Transform的center域.例子:
#VRML V2.0 utf8
DEF zm Transform {
rotation 0 1 0 -1.571
center -15 0 0
children [
Transform {
children [
Shape {
appearance Appearance {
material Material {
diffuseColor 0.588 0.588 0.588
}
}
geometry Box { size 30 50 5 }
}
] }
]
}
Shape {
appearance Appearance {
material Material {
diffuseColor 0.1 0.1 0.588
}
}
geometry Box { size 30 50 5 }
}