getfem-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Getfem-users] visitor for points of a mesh region


From: Yves Renard
Subject: Re: [Getfem-users] visitor for points of a mesh region
Date: Fri, 06 Jul 2012 13:27:00 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:13.0) Gecko/20120615 Thunderbird/13.0.1


Dear Tsai,

There is no visitor for points (mesh nodes) of a mesh region. The more straighforward mean is to iterate on elements/face of a region and then on points of element/face and paying attention to repetitions of points (storing the visited point in a dal::bit-vector for instance).

Yves.




Le 06/07/2012 10:55, CC Tsai a écrit :

Dear Yves,

As we know, we can obtain a visitor for points of a mesh and get their positions by 

 for (dal::bv_visitor i(mesh.points_index()); !i.finished(); ++i)
 {
  bgeot::base_node &pt = mesh.points()[i];
  ...
 }

Therefore, I wounder if there is a means to obtain a visitor for points of a mesh region.

sincerely
CC Tsai





_______________________________________________
Getfem-users mailing list
address@hidden
https://mail.gna.org/listinfo/getfem-users


-- 

  Yves Renard (address@hidden)       tel : (33) 04.72.43.87.08
  Pole de Mathematiques, INSA-Lyon             fax : (33) 04.72.43.85.29
  20, rue Albert Einstein
  69621 Villeurbanne Cedex, FRANCE
  http://math.univ-lyon1.fr/~renard

---------

reply via email to

[Prev in Thread] Current Thread [Next in Thread]