POV-Ray : Newsgroups : povray.general : Patch idea : Re: Patch idea Server Time
4 Aug 2024 00:22:59 EDT (-0400)
  Re: Patch idea  
From: ABX
Date: 26 Aug 2003 08:02:55
Message: <1cimkvcsi4j1006e556tnjevf2s6ups42f@4ax.com>
On 26 Aug 2003 07:20:20 -0400, Warp <war### [at] tagpovrayorg> wrote:
> I don't understand how creating an isosurface from a mesh adds thickness
> to the triangles.

Tenth parameter of f_triangle is Thickness.
http://megapov.inetart.net/manual/expressions.html#f_triangle
Translating this f_function into macro with the same input parameters it could
be represented as CSG

#macro CSG_triangle(V1x,V1y,V1z,V2x,V2y,V2z,V3x,V3y,V3z,Thickness)
  #local V1 = <V1x,V1y,V1z>;
  #local V2 = <V2x,V2y,V2z>;
  #local V3 = <V3x,V3y,V3z>;
  #local R = Thickness;
  merge{
    cylinder{ V1 V2 R }
    cylinder{ V2 V3 R }
    cylinder{ V3 V1 R }
    sphere{ V1 R }
    sphere{ V2 R }
    sphere{ V3 R }
    prism{ // created and oriented to fill space between edges
      ...
      transform ...
    }
  }
#end

ABX


Post a reply to this message

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