|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
is it possible to easly round objects - i.e. I have a mesh - but it is too
sharp. I don't want use smooth_triangle, but to use real smoothing.
It would be ideal - if it would be possible to use in blob any objects.
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
god...
--
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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 :
#declare obj=mesh {
triangle { <0,0,0> <1,2,3> <12,43,423> }
//...
inside_vector z
}
#if (inside(obj,<_x,_y,_z>))
generates error - because "obj" is not finite object.... but - it IS
finite, as said in docs - mesh with inside_vector can even be used in CSG
is this bug ? how can work around it ?
--
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
When returning values from macros, you're supposed to do it like this:
#macro IInside(obj,vec)
#local toreturn = 0;
#local w = <1,2,3>;//trace(obj,vec,z);
#if ((w.x=0)&(w.y=0)&(w.z=0)) #local toreturn =1 ;
#end
(toreturn)
#end
Only actually place a value in there once. Don't do it multiple times within
ifs and elses.
- Slime
[ http://www.slimeland.com/ ]
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 10 Jul 2002 20:23:43 -0400, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> is it possible to easly round objects - i.e. I have a mesh - but it is too
> sharp. I don't want use smooth_triangle, but to use real smoothing.
>
> It would be ideal - if it would be possible to use in blob any objects.
>
> 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
> god...
Rafal, are you reading answers to your posts ? Are you checking links attached
there ? Have you noticed iso_csg library mentioned there ? Have you checked
what is this strange set of include files ? It is possible to make rounded
objects with it. It is possible to make blob with any shape with it. It is
even possible to make IC_Mesh and IC_Triangle but this both wasn't published
yet.
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 10 Jul 2002 20:54:14 -0400, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> is this bug ?
It is not a bug. It is written in documentation that inside_vector works with
well written meshes (in particular closed). If mesh is not closed then ic may
not work. That's obvious.
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 10 Jul 2002 21:06:38 -0400, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> --- 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 ;
You should really spend a little of time checking old posts and not waste own
time to work with not efficient macros. Considering commented trace is some
kind of your shortcut for some content you can write your stuff this way:
#macro IInside(obj,vec)
#local w = <1,2,3>;//trace(obj,vec,z);
(w.gray=0)
#end
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
news:mtaqiuk767r2ehfdqfd78u2flfhvr4e4sh@4ax.com:
> Rafal, are you reading answers to your posts ? Are you checking links
> attached there ?
Yes, this one ?
http://www-public.tu-bs.de:8080/~y0013390/pov/ic/
it doesn't work :/
> possible to make rounded objects with it. It is possible to make blob
> with any shape with it. It is even possible to make IC_Mesh and
> IC_Triangle but this both wasn't published yet.
so - im looking forward to try it out :)
--
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 11 Jul 2002 06:20:43 -0400, "Rafal 'Raf256' Maj" <raf### [at] raf256com> wrote:
> Yes, this one ?
> http://www-public.tu-bs.de:8080/~y0013390/pov/ic/
> it doesn't work :/
How it doesn't work ? 404 error ? Adress can't be resolved ? Something is
forbidden ? Works fine here.
> > possible to make rounded objects with it. It is possible to make blob
> > with any shape with it. It is even possible to make IC_Mesh and
> > IC_Triangle but this both wasn't published yet.
>
> so - im looking forward to try it out :)
I will finish a few more things and will send it to Chris for publication.
ABX
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
news:v5nqiucr8ssdd3th20kni93bko8je0el8b@4ax.com:
>> http://www-public.tu-bs.de:8080/~y0013390/pov/ic/
>> it doesn't work :/
> How it doesn't work ? 404 error ? Adress can't be resolved ? Something is
> forbidden ? Works fine here.
Opera 6.03 - waiting 10 minutes trying to connect toserver and nothing
Mozilla - error : redirections limit for URL exceeded
IE 6.0 - computer is waitnig over 2 minutes, then downloadaccelerator
starts, and displays : File [unknown] was not completed, error 36,0
--
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |