Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要在 .pov 射线文件中获取对象的最低和最高 X、Y 和 Z 值,该文件是通过多个形状(盒子、圆柱体、球体等)的联合创建的。
您正在寻找 min_extend 和 max_extend 函数
#declare Sphere = sphere { <0,0,0>, 1 pigment { rgb <1,0,0> } } #declare Min = min_extent ( Sphere ); #declare Max = max_extent ( Sphere ); object { Sphere } box { Min, Max pigment { rgbf <1,1,1,0.5> } }