|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |