|
|
"Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote in
news:Xns### [at] 204213191226:
>> I will try to make a little work-around - to make macro that will
>> produce blob basing on any components, but probably the resoults will
>> not be too good...
> hmm I have little problem :
heh I must be "lucky" today ;)
ofcourse workaround with inside not working for mesh is to use trace(), but
- while using it I came across little bug (?)
--- Works BAD ------
#macro IInside(obj,vec)
#local w = <1,2,3>;//trace(obj,vec,z);
#if ((w.x=0)&(w.y=0)&(w.z=0)) 1
#else 0
#end
#end
#declare aaaa = IInside(obj,<0,0,0>) ;
--- Works o.k. ------
#macro IInside(obj,vec)
#local w = <1,2,3>;//trace(obj,vec,z);
#if ((w.x=0)&(w.y=0)&(w.z=0)) 1 ; // <-- added ;
#else 0 ; // <-- added ;
#end
#end
#declare aaaa = IInside(obj,<0,0,0>) // <-- removed ;
--
Post a reply to this message
|
|