38 const Domaine_t& domaine=this->mon_dom.valeur();
43 int_t size_tot = domaine.nb_elem_tot();
48 for (
int_t num_poly=0; num_poly<size_tot; num_poly++)
50 S1 = domaine.sommet_elem(num_poly,0);
51 S2 = domaine.sommet_elem(num_poly,1);
56 double x1 = dom.
coord(S1,0);
57 double x2 = dom.
coord(S2,0);
59 double y1 = dom.
coord(S1,1);
60 double y2 = dom.
coord(S2,1);
62 double r1 = sqrt((x1-x0)*(x1-x0)+(y1-y0)*(y1-y0));
63 double r2 = sqrt((x2-x0)*(x2-x0)+(y2-y0)*(y2-y0));
65 volumes[num_poly]= M_PI*std::fabs(r2*r2-r1*r1);
const DoubleTab_t & origine_repere()
double coord(int_t i, int j) const