|
![](/i/fill.gif) |
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
|
![](/i/fill.gif) |