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

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