POV-Ray : Newsgroups : povray.general : Creating a solid mesh? : Re: Creating a solid mesh? Server Time
29 Jul 2024 04:31:29 EDT (-0400)
  Re: Creating a solid mesh?  
From: Alain
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

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