POV-Ray : Newsgroups : povray.general : My triangle function is stupid : Re: My triangle function is stupid Server Time
1 Aug 2024 22:19:33 EDT (-0400)
  Re: My triangle function is stupid  
From: ABX
Date: 11 Mar 2005 09:25:59
Message: <mea331tdq9hpical37sjom4p5q7vek9gud@4ax.com>
On Fri, 11 Mar 2005 12:36:15 -0000, "Tom Melly" <pov### [at] tomandlucouk> wrote:
> ... well, I suspect it is. What's the 'classic' function for a triangle?
>
> Oh, here's mine:
> max(abs(x) + (max(y,0)-1), y*-1)

f_triangle written in SDL is available in iso-csg. It can be also hardcoded in
custom builds (MegaPOV) as described at
http://www.abx.art.pl/pov/patches/f_triangle.php

ABX


Post a reply to this message

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