POV-Ray : Newsgroups : povray.binaries.images : For Hugo. Irregular mesh smoothing idea. : Re: Yeaah! I got it to work!! Server Time
16 Aug 2024 14:18:27 EDT (-0400)
  Re: Yeaah! I got it to work!!  
From: Hugo
Date: 6 Mar 2002 16:57:51
Message: <3c8690df$1@news.povray.org>
>>> 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

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