|
|
Rafal 'Raf256' Maj <raf### [at] raf256com> wrote:
> void* PointInside(DBL x,DBL y,DBL z, DBL epsilon=1e-3);
This is completely unrelated to the issue in question, but as you are
wanting to make a good object-oriented implementation, I would like to
note that 'void*' is usually against OO principles and extremely rarely,
if at all, needed in a well-designed OO program. (I have never used it
in my programs, that's for sure.)
(Of course if you are doing this as a POV-Ray patch, you might need to
use it in some places, as the POV-Ray source is still basically C, where
using 'void*' is more common.)
By the way, isn't that a rather large value for epsilon? Such large value
can introduce visible artifacts.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|