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