POV-Ray : Newsgroups : povray.general : Creating a solid mesh? Server Time
1 Nov 2024 19:15:24 EDT (-0400)
  Creating a solid mesh? (Message 1 to 4 of 4)  
From: Ger
Subject: Creating a solid mesh?
Date: 10 Apr 2013 14:27:16
Message: <5165af04@news.povray.org>
I have a mesh like
#declare Rock =
mesh {
triangle { <1.18394,0.731716,0> ,<1.2183,0.176994,0> 
,<0.884704,0.418174,0.336688>  }
triangle { <0.435294,-0.179765,0.233691> ,<0.884704,0.418174,0.336688> 
,<1.2183,0.176994,0>  }
triangle { <1.18394,0.731716,0> ,<0.884704,0.418174,0.336688> 
,<0.801575,1.26565,0.476038>  }
// removed 50K triangles

}

#declare BlockObject = object { Rock } 

I use the following to determine if point "L" is inside the BlockObject and 
move it outward if need be.

  #while (inside(BlockObject, L))
    #declare L = L - (S*1.01);
  #end  

This works fine as long as BlockObject is a CSG, but with the mesh it comes 
back with: Parse Error: Solid object identifier expected.

I checked the manuals but can't figure out how to make the mesh "solid"

Any help appreciated.

Running 3.7B7 on linux

-- 
Ger


Post a reply to this message

From: Ger
Subject: Re: Creating a solid mesh?
Date: 10 Apr 2013 14:55:48
Message: <5165b5b4@news.povray.org>
Ger wrote:

> 
> I have a mesh like
> #declare Rock =
> mesh {
> triangle { <1.18394,0.731716,0> ,<1.2183,0.176994,0>
> ,<0.884704,0.418174,0.336688>  }
> triangle { <0.435294,-0.179765,0.233691> ,<0.884704,0.418174,0.336688>
> ,<1.2183,0.176994,0>  }
> triangle { <1.18394,0.731716,0> ,<0.884704,0.418174,0.336688>
> ,<0.801575,1.26565,0.476038>  }
> // removed 50K triangles
> 
> }
> 
> #declare BlockObject = object { Rock }
> 
> I use the following to determine if point "L" is inside the BlockObject
> and move it outward if need be.
> 
>   #while (inside(BlockObject, L))
>     #declare L = L - (S*1.01);
>   #end
> 
> This works fine as long as BlockObject is a CSG, but with the mesh it
> comes back with: Parse Error: Solid object identifier expected.
> 
> I checked the manuals but can't figure out how to make the mesh "solid"
> 
> Any help appreciated.
> 
> Running 3.7B7 on linux
> 

Never mind. Stupid mistake on my part :)

-- 
Ger


Post a reply to this message

From: Alain
Subject: Re: Creating a solid mesh?
Date: 10 Apr 2013 17:48:40
Message: <5165de38$1@news.povray.org>

> Ger wrote:
>
>>
>> I have a mesh like
>> #declare Rock =
>> mesh {
>> triangle { <1.18394,0.731716,0> ,<1.2183,0.176994,0>
>> ,<0.884704,0.418174,0.336688>  }
>> triangle { <0.435294,-0.179765,0.233691> ,<0.884704,0.418174,0.336688>
>> ,<1.2183,0.176994,0>  }
>> triangle { <1.18394,0.731716,0> ,<0.884704,0.418174,0.336688>
>> ,<0.801575,1.26565,0.476038>  }
>> // removed 50K triangles
>>
>> }
>>
>> #declare BlockObject = object { Rock }
>>
>> I use the following to determine if point "L" is inside the BlockObject
>> and move it outward if need be.
>>
>>    #while (inside(BlockObject, L))
>>      #declare L = L - (S*1.01);
>>    #end
>>
>> This works fine as long as BlockObject is a CSG, but with the mesh it
>> comes back with: Parse Error: Solid object identifier expected.
>>
>> I checked the manuals but can't figure out how to make the mesh "solid"
>>
>> Any help appreciated.
>>
>> Running 3.7B7 on linux
>>
>
> Never mind. Stupid mistake on my part :)
>

Yep! You just forgot the inside_vector... Oups!


Post a reply to this message

From: Ger
Subject: Re: Creating a solid mesh?
Date: 10 Apr 2013 18:37:35
Message: <5165e9af@news.povray.org>
Alain wrote:

> Le 13-04-10 14:55, Ger a écrit :
>> Ger wrote:
>>
>>>
>>> I have a mesh like
>>> #declare Rock =
>>> mesh {
>>> triangle { <1.18394,0.731716,0> ,<1.2183,0.176994,0>
>>> ,<0.884704,0.418174,0.336688>  }
>>> triangle { <0.435294,-0.179765,0.233691> ,<0.884704,0.418174,0.336688>
>>> ,<1.2183,0.176994,0>  }
>>> triangle { <1.18394,0.731716,0> ,<0.884704,0.418174,0.336688>
>>> ,<0.801575,1.26565,0.476038>  }
>>> // removed 50K triangles
>>>
>>> }
>>>
>>> #declare BlockObject = object { Rock }
>>>
>>> I use the following to determine if point "L" is inside the BlockObject
>>> and move it outward if need be.
>>>
>>>    #while (inside(BlockObject, L))
>>>      #declare L = L - (S*1.01);
>>>    #end
>>>
>>> This works fine as long as BlockObject is a CSG, but with the mesh it
>>> comes back with: Parse Error: Solid object identifier expected.
>>>
>>> I checked the manuals but can't figure out how to make the mesh "solid"
>>>
>>> Any help appreciated.
>>>
>>> Running 3.7B7 on linux
>>>
>>
>> Never mind. Stupid mistake on my part :)
>>
> 
> Yep! You just forgot the inside_vector... Oups!

Sssssshhhhhhhht, no need to say it THAT loud!!!!!  :)

-- 
Ger


Post a reply to this message

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