POV-Ray : Newsgroups : povray.binaries.images : An artifact when rendering torus(negative major_r) : Re: An artifact when rendering torus(negative major_r) Server Time
3 May 2024 06:45:41 EDT (-0400)
  Re: An artifact when rendering torus(negative major_r)  
From: And
Date: 7 Apr 2015 12:30:01
Message: <web.552405c288bb499a123791000@news.povray.org>
#macro Poly_Torus(_major_r, _minor_r)
#local R = _major_r;
#local r = _minor_r;

#local poly_obj =
polynomial{
4,
xyz(4,0,0):1,
xyz(0,4,0):1,
xyz(0,0,4):1,
xyz(2,2,0):2,
xyz(0,2,2):2,
xyz(2,0,2):2,
xyz(2,0,0):-2*R*R - 2*r*r,
xyz(0,2,0):-2*R*R - 2*r*r,
xyz(0,0,2):2*R*R - 2*r*r,
xyz(0,0,0):pow(R*R - r*r,2),
}
poly_obj
#end




intersection{
    sphere{
    <0,0,0>,0.02
    }
    object{
    Poly_Torus(0.01247, 0.02357)
    inverse
    }
pigment{rgb<0.34,0.38,0.12>}
}


Post a reply to this message


Attachments:
Download 'poly torus_2.png' (26 KB)

Preview of image 'poly torus_2.png'
poly torus_2.png


 

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.