POV-Ray : Newsgroups : povray.binaries.scene-files : Witch Demo file : Re: Witch Demo file Server Time
1 Sep 2024 10:21:50 EDT (-0400)
  Re: Witch Demo file  
From: alphaQuad
Date: 14 Oct 2007 22:10:01
Message: <web.4712caba3c5253d8278485aa0@news.povray.org>
mult opposite point*side to get incenter.

here's the fix for the messed up incenter() in trinagulation.inc


#macro incenter(v1,v2,v3)
      #local a = vlength(v1-v2);
      #local b = vlength(v2-v3);
      #local c = vlength(v3-v1);
      #local d = (a+b+c);
  #local result =
      <((b*v1.x) + (c*v2.x) + (a*v3.x))/d,
       ((b*v1.y) + (c*v2.y) + (a*v3.y))/d,
       ((b*v1.z) + (c*v2.z) + (a*v3.z))/d>;
  result
#end


pretty much everything tested now and 6 new funcs


Post a reply to this message

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