POV-Ray : Newsgroups : povray.newusers : Mesh and polygons area : Re: Mesh and polygons area Server Time
28 Jul 2024 18:19:01 EDT (-0400)
  Re: Mesh and polygons area  
From: Penelope20k
Date: 2 Nov 2007 03:31:51
Message: <472ae077$1@news.povray.org>
Assuming that with a polygone you must know each points coordinates
then the area of triangle is

Area = abs(   (xB*yA - xA*yB)  + (xC*yB -x B*yC)+( xA*yC - xC*yA ) ) /2








news:472a2544@news.povray.org...
> Le 01.11.2007 19:25, Francesco nous fit lire :
> > I do not find how to measure area of mesh and polygons. I hope I do not
have to
> > calculate it triangle by triangle. Anyone could help me please?
> >
> >
> Mesh are 3D by nature, you're stuck to the triangle per triangle
> solution, IMHO.
>
> Polygon are 2D, and there is a well-known shortcut for them, with an
> evaluation on a grid (the finer the grid, the better the precision),
> it's just that you have to count the number of intersections from
> the grid inside the polygon.
> Is it simpler for you ?
>
> -- 
> The superior man understands what is right;
> the inferior man understands what will sell.
> -- Confucius


Post a reply to this message

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