Re: determine the area on slice

From: Irene Quinlan (ireneq@sanders-prototype.com)
Date: Fri Mar 03 2000 - 16:30:30 EET


Wanchai -

The area of a 2D polygon can be calculated by
    polygon = set of points {P1, ... PN}
    area = (P1 X P2 + P2 X P3 + ... PN-1 X PN + PN X P1) / 2
where X is a vector cross product, and
    P1 X P2 = (P1.x * P2.y) - (P1.y * P2.x)

Don't forget to subtract the area of the holes from the outer areas.

Irene Quinlan
Sanders Prototype, Inc.

Wanchai Rattanawong wrote:
>
> Dear everyone
>
> Can anyone suggest me how to determine the area on each layer? Assume
> that we have many points on one slice.
>
> Best regards,
> Wanchai Rattanawong
> Industrial Research Institute Swinburne (IRIS)
> P.O. BOX 218, Hawthorn
> Victoria 3122, Australia
> Tel:(613)9214 5654 Fax:(613) 9214 5050
> Email: wratta@swin.edu.au
>
> For more information about the rp-ml, see http://ltk.hut.fi/rp-ml/

For more information about the rp-ml, see http://ltk.hut.fi/rp-ml/



This archive was generated by hypermail 2.1.2 : Tue Jun 05 2001 - 23:02:57 EEST