当前位置: > vrml实现门的开关功能,旋转轴不在中间,在左侧,最好写明旋转轴是怎样设置的,谢谢...
题目
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 }
}
] }
]
}

提问时间:2020-11-09

答案
设置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 }
}
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.