|
|
On 29/01/14 10:30, John Greenwood wrote:
> I have created an isosurface with _exactly_ the shape I want, but there is one
> region where generation breaks down, I think because of surfaces coinciding.
>
> Any suggestions?
>
> // This works except fo the "Ears" where the parabola reflects
> function {-((1-pow(z/Zo,2))*pow((y-Rr+sqrt(pow(Rr,2)-pow(z,2))),2))+pow(x,4)}
> max_gradient 200
> accuracy 0.001
> threshold 0
> contained_by {box {<0,0,-1>,<2,2,1>}}
> }
You need the keyword 'all_intersections' thus:
function
{-((1-pow(z/Zo,2))*pow((y-Rr+sqrt(pow(Rr,2)-pow(z,2))),2))+pow(x,4)}
max_gradient 32
accuracy 0.001
threshold 0
all_intersections
contained_by {box {<0,0,-1>,<2,2,1>}}
}
You will also notice that I have reduced your max_gradient to 32 thus
gaining an ~40% increase in speed.
See: http://www.povray.org/documentation/view/3.7.0/300/ At the bottom
of the page there is a short paragraph about max_trace and
all_intersections.
John
--
Protect the Earth
It was not given to you by your parents
You hold it in trust for your children
Post a reply to this message
|
|