我想使用 POV-Ray 绘制以下内容。
#include "colors.inc"
#include "glass.inc"
#include "textures.inc"
global_settings { ambient_light color White}
camera {
location <0, 0, -10>
right x*image_width/image_height
look_at<0, 0, 0>
}
background { White }
#declare BEAKER_HEIGHT = 1;
#declare cyclinder_xpos = 0;
difference
{
cylinder
{
<cyclinder_xpos, -3, 0>, <cyclinder_xpos, BEAKER_HEIGHT, 0>, 1
}
cylinder
{
<cyclinder_xpos, -2.95, 0>, <cyclinder_xpos, BEAKER_HEIGHT-2, 0>, 0.89
texture { Water}
}
pigment
{
rgbt .8
}
finish
{
Glass_Finish
}
}
如果cyclinder_xpos = 0
,其结果是
如果cyclinder_xpos = 5
,其结果是
如果位置改变,气缸就会改变。我怎样才能在不变形的情况下移动气缸?