|
![](/i/fill.gif) |
Hello all, n00b here.
I've been playing around with POV for a few weeks now, I'm currently
interested in Isosurfaces. I tried making a book out of a page but I
stumbled on a strange behaviour: if I replicate the page with a while loop
I get the correct result shown in
http://i21.photobucket.com/albums/b288/aardpast/Real%20pics/BookIso2Correct.png
Now, when I want to cut the little tail and add a spine to the book by
adding the following block:
difference {
object{halfbook}
box{<-0.5,-0.5,-2> <0.7,0.7,5> rotate z*45 translate x*0.3 }
texture {T_Page2}
}
I get
http://i21.photobucket.com/albums/b288/aardpast/Real%20pics/BookIso2Difference2.png
Moving around the box doesn't get rid of the extra stuff. What am I doing
wrong? POV version is 3.6 for Windows. The code is:
#declare halfbook=
union{
#while (a<1)
isosurface{
function{
eparam*ln(x+fparam+(numpag-1)*zdist*(1-a)) +
bparam*(x+(numpag-1)*zdist*(1-a)) + cparam*pow(x+(numpag-1)*zdist*(1-a),2)
+ dparam - y}
open
max_gradient 2.5
contained_by { box { 0.000001, <minimum + overh +
numpag*(1-a)*extralp,3 ,minimum + overh> } }
translate <zdist*numpag*(1-a)*0.25,-2*zdist*numpag*(1-a),0>
}
#declare a=a+1/numpag;
#end
}
//difference{ // remove comments for pic #2
object{halfbook }
//box{<-0.5,-0.5,-2> <0.7,0.7,5> rotate z*45 translate x*0.3 }
//texture {T_Page2}
//}
Post a reply to this message
|
![](/i/fill.gif) |