|
|
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
|
|