>>> universal formula for area of triangle:
>>> S=sqrt(p*(p-a)*(p-b)*(p-c))
>> Is that faster than using half the cross product of two of the sides?
>> Something like:
>> area = vlength(vcross(P1-P2,P3-P2))/2;
> Don't think so. sqrt needs more cpu cycles. But maybe I'm wrong!
Vlength uses sqrt internally. But the major slowdown is Povrays interpreter
and not the cpu.
Regards
Hugo
Post a reply to this message
|