POV-Ray : Newsgroups : povray.binaries.images : Mesh CSG help Server Time
31 Jul 2024 06:15:10 EDT (-0400)
  Mesh CSG help (Message 11 to 16 of 16)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: clipka
Subject: Re: Mesh CSG help
Date: 19 Jun 2010 17:13:23
Message: <4c1d32f3$1@news.povray.org>
Am 19.06.2010 20:23, schrieb SharkD:

> I still don't understand what value I /should/ be using for
> inside_vector. Someplace inside the mesh that is not <0,0,0>?

There is no "right" value, and no "wrong" one either except for <0,0,0> 
- any non-zero vector will usually do. I often use "y", but you can just 
as well use "x", "z", "<1,1,1>", "<42,23,4711>", 
"<sqrt(13),log(77),sin(0.2)>" or... well, maybe you get the idea.

The only situation when the actual value of this vector may make a 
difference is when you get artifacts - in that case choosing some other 
value may help.


Post a reply to this message

From: SharkD
Subject: Re: Mesh CSG help
Date: 19 Jun 2010 17:49:43
Message: <4c1d3b77$1@news.povray.org>
On 6/19/2010 5:13 PM, clipka wrote:
> Am 19.06.2010 20:23, schrieb SharkD:
>
>> I still don't understand what value I /should/ be using for
>> inside_vector. Someplace inside the mesh that is not <0,0,0>?
>
> There is no "right" value, and no "wrong" one either except for <0,0,0>
> - any non-zero vector will usually do. I often use "y", but you can just
> as well use "x", "z", "<1,1,1>", "<42,23,4711>",
> "<sqrt(13),log(77),sin(0.2)>" or... well, maybe you get the idea.
>
> The only situation when the actual value of this vector may make a
> difference is when you get artifacts - in that case choosing some other
> value may help.

OK, thanks.

-- 
http://isometricland.com


Post a reply to this message

From: Thomas de Groot
Subject: Re: Mesh CSG help
Date: 20 Jun 2010 03:49:48
Message: <4c1dc81c@news.povray.org>
"SharkD" <pos### [at] gmailcom> schreef in bericht 
news:4c1ceb68$1@news.povray.org...
> I'm a bit confused by input_vector. Is it a vector or a point? I have 
> simply been placing it at the exact center of each mesh, which sometimes 
> happens to be the origin.

For instance, Poseray puts the inside_vector at the end of the mesh2:

mesh2{
.....all mesh data.....
inside_vector <0,0,1>
}

Thomas


Post a reply to this message

From: SharkD
Subject: Re: Mesh CSG help
Date: 20 Jun 2010 05:15:54
Message: <4c1ddc4a$1@news.povray.org>
On 6/20/2010 3:49 AM, Thomas de Groot wrote:
> For instance, Poseray puts the inside_vector at the end of the mesh2:
>
> mesh2{
> .....all mesh data.....
> inside_vector<0,0,1>
> }
>
> Thomas
>
>

I didn't mean placement within the blocks of SDL code, LOL!

-- 
http://isometricland.com


Post a reply to this message

From: Thomas de Groot
Subject: Re: Mesh CSG help
Date: 20 Jun 2010 11:20:41
Message: <4c1e31c9@news.povray.org>
"SharkD" <pos### [at] gmailcom> schreef in bericht 
news:4c1ddc4a$1@news.povray.org...
> I didn't mean placement within the blocks of SDL code, LOL!
>

Great! One of my infamous misunderstandings :-)

Thomas


Post a reply to this message

From: Alain
Subject: Re: Mesh CSG help
Date: 27 Jun 2010 14:15:21
Message: <4c279539$1@news.povray.org>
Le 2010-06-17 11:48, SharkD a écrit :
> When I intersect two solid meshes I get weird artifacts, as can be seen
> in the following images. The red object is the main object, the green
> object is the one I'm trying to subtract. The artifacts aren't _always"
> there. Sometimes they disappear when the radius of the green object
> changes. Any clue why this is happening?
>
>

Looks like a problem with the orientation of the inside vector.
Try changing it a little.
If it's value is <0,1,0>, change it to something like <0.0001,1,0>.


Alain


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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