gpt4 book ai didi

povray - splinter 的车床对象

转载 作者:行者123 更新时间:2023-12-01 15:13:57 24 4
gpt4 key购买 nike

我是 Pov-Ray 的初学者,我正在尝试在 Pov-Ray 中创建一个车床对象,但它看起来有点破损。有人可以给我一些关于如何修复它的建议吗?

enter image description here

我用来创建的代码是

#include "colors.inc"

global_settings {
max_trace_level 5
assumed_gamma 1.0
radiosity {
pretrace_start 0.08
pretrace_end 0.01
count 35
nearest_count 5
error_bound 1.8
recursion_limit 2
low_error_factor .5
gray_threshold 0.0
minimum_reuse 0.015
brightness 1
adc_bailout 0.01/2
}
}

#default {
texture {
pigment {rgb 1}
finish {
ambient 0.0
diffuse 0.6
specular 0.6 roughness 0.001
reflection { 0.0 1.0 fresnel on }
conserve_energy
}
}
}

light_source { <050,250,250> 1 }
background { rgb <0,.25,.5> }

camera{
location <250,250,250>
look_at <0,100,0>

}

lathe{
quadratic_spline
38,
<32.8000,284.0000>,
<37.8000,276.0000>,
<43.3000,267.0000>,
<49.3000,257.0000>,
<53.8000,248.0000>,
<58.3000,236.0000>,
<61.8000,224.0000>,
<64.3000,212.0000>,
<65.3000,199.0000>,
<64.3000,186.0000>,
<61.8000,174.0000>,
<58.3000,166.0000>,
<53.3000,157.0000>,
<46.3000,149.0000>,
<38.8000,144.0000>,
<30.3000,140.0000>,
<23.3000,137.0000>,
<17.8000,135.0000>,
<13.8000,135.0000>,
<13.8000,129.0000>,
<10.3000,127.0000>,
<7.2500,122.0000>,
<5.7500,116.0000>,
<4.7500,109.0000>,
<4.2500,101.0000>,
<3.7500,88.2000>,
<3.7500,70.3000>,
<3.7500,53.8000>,
<4.7500,39.8000>,
<6.7500,25.8000>,
<8.2500,20.3000>,
<11.3000,16.8000>,
<17.3000,14.3000>,
<25.3000,11.3000>,
<33.8000,9.2500>,
<41.3000,7.7500>,
<48.3000,5.7500>,
<48.8000,0.2500>
texture{
pigment{color White}
finish { phong 0.5}}
}

最佳答案

这似乎是由于 quadratic_spline 的计算不准确造成的。使用 cubic_spline 作为更精确的方法应该可以解决这个问题。

关于povray - splinter 的车床对象,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23707992/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com