我有两个形状,我想禁用其中一个主题的旋转。最好的方法是什么?
# A Cylinder
Shape {
appearance Appearance {
material Material {
diffuseColor 0.75 0.5 1.0
specularColor 0.7 0.7 0.8
shininess 0.1
}
}
geometry Cylinder {
height 0.2
radius 3.
}
}
# A Sphere
Shape {
appearance Appearance {
material Material {
diffuseColor 0.2 0.5 0.75
transparency 0.0
}
}
geometry Sphere {
radius 1.0
}
}
由于
答案 0 :(得分:0)
您所拥有的只有两个Shape节点,您可以在其中定义外观和几何体(球体和圆柱体)。代码中没有任何内容可以使任何形状旋转。
如果你想摆脱旋转,那么你必须搜索相应的ROUTE去往其中一个形状。同样,您的代码没有任何DEF,这意味着没有可能会旋转您任何形状的路径。
默认情况下,除非指定了路径,否则Shape不会自行旋转,当然也会写入一段脚本。