POV-Ray : Newsgroups : povray.general : Rounding object Server Time
6 Aug 2024 02:21:12 EDT (-0400)
  Rounding object (Message 1 to 10 of 22)  
Goto Latest 10 Messages Next 10 Messages >>>
From: Rafal 'Raf256' Maj
Subject: Rounding object
Date: 10 Jul 2002 20:23:43
Message: <Xns924817CAA84EAraf256com@204.213.191.226>
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

From: Rafal 'Raf256' Maj
Subject: Re: Rounding object
Date: 10 Jul 2002 20:54:14
Message: <Xns92481CF77FE30raf256com@204.213.191.226>
"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

From: Rafal 'Raf256' Maj
Subject: Re: Rounding object
Date: 10 Jul 2002 21:06:38
Message: <Xns92481F1206310raf256com@204.213.191.226>
"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

From: Slime
Subject: Re: Rounding object
Date: 10 Jul 2002 21:35:50
Message: <3d2ce0f6@news.povray.org>
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

From:
Subject: Re: Rounding object
Date: 11 Jul 2002 02:59:20
Message: <mtaqiuk767r2ehfdqfd78u2flfhvr4e4sh@4ax.com>
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

From:
Subject: Re: Rounding object
Date: 11 Jul 2002 03:05:05
Message: <4bbqiuomcsg64nijupie5ufomtpd063n9j@4ax.com>
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

From:
Subject: Re: Rounding object
Date: 11 Jul 2002 03:11:50
Message: <hfbqiukqi8tefqb6rb0o4sv5esm6eunlvt@4ax.com>
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

From: Rafal 'Raf256' Maj
Subject: Re: Rounding object
Date: 11 Jul 2002 06:20:43
Message: <Xns92487D03D3312raf256com@204.213.191.226>

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

From:
Subject: Re: Rounding object
Date: 11 Jul 2002 06:28:03
Message: <v5nqiucr8ssdd3th20kni93bko8je0el8b@4ax.com>
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

From: Rafal 'Raf256' Maj
Subject: Re: Rounding object
Date: 11 Jul 2002 07:16:29
Message: <Xns924886784B67Eraf256com@204.213.191.226>

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

Goto Latest 10 Messages Next 10 Messages >>>

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