Dear Yves,

I have tried to write some codes like shown in the last of this email.
However, it is too difficult to finish it without a detailed understanding
of the class structures. It will be highly appreciated if you can give me
some advise.

sincerely
Tsai

dal::bit_vector MeshRegion_points_index(const getfem::mesh& mesh,unsigned
int rg_id)
{
 dal::bit_vector temp;
 for (getfem::mr_visitor i(mesh.region(rg_id)); !i.finished(); ++i)
 {
    temp[??]=true;
 }
 return temp;
}

On Sat, Jul 7, 2012 at 6:00 PM, <[email protected]> wrote:

> Send Getfem-users mailing list submissions to
>         [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         https://mail.gna.org/listinfo/getfem-users
> or, via email, send a message with subject or body 'help' to
>         [email protected]
>
> You can reach the person managing the list at
>         [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Getfem-users digest..."
>
>
> Today's Topics:
>
>    1. Re: visitor for points of a mesh region (Yves Renard)
>    2. Documentation errors (Torquil Macdonald S?rensen)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Fri, 06 Jul 2012 13:27:00 +0200
> From: Yves Renard <[email protected]>
> To: CC Tsai <[email protected]>
> Cc: [email protected]
> Subject: Re: [Getfem-users] visitor for points of a mesh region
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset="iso-8859-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 andpaying 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
> > [email protected]
> > https://mail.gna.org/listinfo/getfem-users
>
>
> --
>
>   Yves Renard ([email protected])       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
>
> ---------
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: </public/getfem-users/attachments/20120706/d35af8c1/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Fri, 6 Jul 2012 14:33:56 +0200
> From: Torquil Macdonald S?rensen <[email protected]>
> To: [email protected]
> Subject: [Getfem-users] Documentation errors
> Message-ID:
>         <
> cad6paknbsqeqjooyvgyu4nl3ezwckbs1jrts8yr2d2xxmwu...@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi!
>
> Most of the descriptions of "Protected Attributes" are mixed up on this
> page:
>
>
> http://download.gna.org/getfem/doc/getfem_reference/classgetfem_1_1virtual__fem.html
>
> Best regards
> Torquil S?rensen
>
>
>
> ------------------------------
>
> _______________________________________________
> Getfem-users mailing list
> [email protected]
> https://mail.gna.org/listinfo/getfem-users
>
>
> End of Getfem-users Digest, Vol 73, Issue 2
> *******************************************
>



-- 

Dr. Chia-Cheng Tsai

Associated Professor

Department of Marine Environmental Engineering

National Kaohsiung Marine University

Kaohsiung, Taiwan
_______________________________________________
Getfem-users mailing list
[email protected]
https://mail.gna.org/listinfo/getfem-users

Reply via email to