POV-Ray : Newsgroups : povray.general : Warning: Patch objects not allowed in intersection Server Time
7 Nov 2024 04:54:24 EST (-0500)
  Warning: Patch objects not allowed in intersection (Message 1 to 10 of 11)  
Goto Latest 10 Messages Next 1 Messages >>>
From: =Bob=
Subject: Warning: Patch objects not allowed in intersection
Date: 18 Feb 2004 16:20:55
Message: <4033d737@news.povray.org>
I received this error while doing a difference with a triangle within
a union (POV 3.5, NT4), yet it seems to have rendered fine, that
is, the semicircle was removed from the triangle. What did I do
incorrectly?

difference {
   union {
     cylinder { <-0.1,0.25,0> <0,0,0> 0.005 }
     cylinder { <0.1,0.25,0> <0,0,0> 0.005 }
     triangle { <0,0,0>, <-0.1,0.25.0>,  <0.1,0.25.0> }
    }

  cylinder { <0,0.25, 0.1> <0,0.25,-0.1> 0.11 }
  pigment {rgb 1}
  }

=Bob=


Post a reply to this message

From: Dan P
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 01:42:43
Message: <40345ae3@news.povray.org>
"=Bob=" <was### [at] threestrandscom> wrote in message
news:4033d737@news.povray.org...
> I received this error while doing a difference with a triangle within
> a union (POV 3.5, NT4), yet it seems to have rendered fine, that
> is, the semicircle was removed from the triangle. What did I do
> incorrectly?
>
> difference {
>    union {
>      cylinder { <-0.1,0.25,0> <0,0,0> 0.005 }
>      cylinder { <0.1,0.25,0> <0,0,0> 0.005 }
>      triangle { <0,0,0>, <-0.1,0.25.0>,  <0.1,0.25.0> }
>     }
>
>   cylinder { <0,0.25, 0.1> <0,0.25,-0.1> 0.11 }
>   pigment {rgb 1}
>   }

You have periods instead of commas before the Z member of your triangle
vectors.


Post a reply to this message

From: ABX
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 01:49:54
Message: <cpm8309ueh2h1fnfbrlagds1jkvgtoenr7@4ax.com>
On Wed, 18 Feb 2004 13:21:38 -0800, "=Bob=" <was### [at] threestrandscom>
wrote:
> I received this error

No, 3.5 says it's a "Warning", not error.
3.6 says it's a "Parse warning", so...

> yet it seems to have rendered fine

Warning is a warning. It's for your knowledge.

> What did I do incorrectly?

For some cases patch object could work, for some couldn't. Since it is not
easy to decide it at parsing time, you are warned about possible problem.
Perhaps could be better formulated. Warnings are supposed to be informative
but short.

"6.5.6.4 Difference" chapter: "The component objects must have well defined
inside/outside properties. Patch objects are not allowed."

ABX


Post a reply to this message

From: Dan P
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 01:56:39
Message: <40345e27@news.povray.org>
"ABX" <abx### [at] abxartpl> wrote in message
news:cpm8309ueh2h1fnfbrlagds1jkvgtoenr7@4ax.com...
> On Wed, 18 Feb 2004 13:21:38 -0800, "=Bob=" <was### [at] threestrandscom>
> wrote:

Oy, so it wasn't the Z members after all :-)

<snip />

> "6.5.6.4 Difference" chapter: "The component objects must have well
defined
> inside/outside properties. Patch objects are not allowed."

Hey, I just saw this commercial where a human body had an ior and I figured
it must have been a patch. Can you add ior to patches when the inside is not
well defined?


Post a reply to this message

From: ABX
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 02:09:34
Message: <17o830hh0puv82u8762v7acf1nkibrsdmu@4ax.com>
On Thu, 19 Feb 2004 00:42:44 -0600, "Dan P" <dan### [at] yahoocom> wrote:
> You have periods instead of commas before the Z member of your triangle
> vectors.

That's one of the known technics making code shorter.

ABX
-- 
disc{z,-z#macro O()asc(substr("-+((1*(,1,/.-,*/(,&.323/'1"e 1))/10-4#declare
e=e-1;#end#local e=26;5pigment{#local g=function(_){ceil(_)-_}function#local
k=function{pattern{object{sphere_sweep{linear_spline 13#while(e)<O()O()>.01#
end}}}}{k(g(atan2(x,y)),g(ln(pow(x+y,2)+1e-5)),0)}}finish{ambient 1}}//ABX35


Post a reply to this message

From: ABX
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 02:16:50
Message: <ffo830lb8t537r034o3uo4i9a0saitho4t@4ax.com>
On Thu, 19 Feb 2004 00:56:39 -0600, "Dan P" <dan### [at] yahoocom> wrote:
> Hey, I just saw this commercial where a human body had an ior and I figured
> it must have been a patch.

Raytracing with X-Rays ?

> Can you add ior to patches when the inside is not well defined?

Even lights can have negative colours.
Artistic purposes are unknown for us, technical nerds ;-)

ABX


Post a reply to this message

From: Christopher James Huff
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 13:42:03
Message: <cjameshuff-C1CF01.13423919022004@news.povray.org>
In article <40345e27@news.povray.org>,
 "Dan P" <dan### [at] yahoocom> wrote:

> Hey, I just saw this commercial where a human body had an ior and I figured
> it must have been a patch. Can you add ior to patches when the inside is not
> well defined?

Using ior only requires that the shape be closed and that it has a 
"clean" interior. When doing refracted rays, POV keeps track of 
insideness by counting surfaces hit...it enters a sphere the first time 
it hits it, and leaves it the second time. A mesh sphere will work 
properly. A mesh sphere with holes in it, or with a stray triangle stuck 
in the middle, will not render properly, but this is practically 
impossible to test, so POV doesn't even try to detect it.

You can't bend a single patch into a shape that's useful for refraction, 
but you can construct a shape out of patches that will render properly 
with refraction. It won't work properly with some CSG operations, though.

-- 
Christopher James Huff <cja### [at] earthlinknet>
http://home.earthlink.net/~cjameshuff/
POV-Ray TAG: <chr### [at] tagpovrayorg>
http://tag.povray.org/


Post a reply to this message

From: Andreas Kaiser
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 17:35:47
Message: <2hea30letlpo0ku5tucghggn03fkvd2nfh@4ax.com>
On Thu, 19 Feb 2004 08:10:36 +0100, ABX <abx### [at] abxartpl> wrote:

>On Thu, 19 Feb 2004 00:42:44 -0600, "Dan P" <dan### [at] yahoocom> wrote:
>> You have periods instead of commas before the Z member of your triangle
>> vectors.
>
>That's one of the known technics making code shorter.

gulp

-- 
Andreas


Post a reply to this message

From: Dan P
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 19 Feb 2004 19:18:32
Message: <40355258$1@news.povray.org>
"Christopher James Huff" <cja### [at] earthlinknet> wrote in message
news:cjameshuff-C1CF01.13423919022004@news.povray.org...
> In article <40345e27@news.povray.org>,
>  "Dan P" <dan### [at] yahoocom> wrote:
>
<snip />

Ah, I get it. Thank you Christopher!!!!


Post a reply to this message

From: Warp
Subject: Re: Warning: Patch objects not allowed in intersection
Date: 20 Feb 2004 05:18:33
Message: <4035def9@news.povray.org>
Christopher James Huff <cja### [at] earthlinknet> wrote:
> You can't bend a single patch into a shape that's useful for refraction, 
> but you can construct a shape out of patches that will render properly 
> with refraction. It won't work properly with some CSG operations, though.

  Unless you use a specialized algorithm to determine the insideness of
the patch object, such as the 'inside_vector' in meshes does... :)

-- 
#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

Goto Latest 10 Messages Next 1 Messages >>>

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