|
|
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
|
|