[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Getfem-users] Building a mesh from slice doesn't seem to be possibl
From: |
Julien Pommier |
Subject: |
Re: [Getfem-users] Building a mesh from slice doesn't seem to be possible using getfem-matlab interface |
Date: |
Thu, 07 Aug 2008 22:43:28 +0200 |
User-agent: |
Internet Messaging Program (IMP) 3.2.6 |
Hi Arvind,
You can build a mesh from a slice in matlab by exporting the array of vertices
and triangles of the slice ( P=gf_slice_get('pts') and
T=gf_slice_get('splxs',2)) and build the mesh from them with gf_mesh('ptND', P,
T)
--
Julien
Quoting Arvind Ajoy <address@hidden>:
> Dear Getfem users
>
> In my previous post, I had asked questions regarding the calculation of an
> (n-1) dimensional
> integral in a an n-dim problem.
> In pursuit of a solution to this, I was successful in creating a slice using
> the gf_slice('points', mesh m, mat P)
> function in the getfem-matlab interface. I now need to create a mesh from
> this slice.
>
> The documentation for the getfem-matlab interface doesnt seem to mention how
> one can create a mesh from
> a slice. However, the getfem++ documentation at
> http://download.gna.org/getfem/doc/getfemuser/getfemuser_18.html#id2
> points out the following
>
"getfem::slicer_build_mesh<http://download.gna.org/getfem/doc/getfem_reference/classgetfem_1_1slicer__build__mesh.html>
> (mesh
> &m) : In some (rare) occasions , it might be useful to build a mesh from a
> slice.
> Note however that there is absolutely no guaranty that the mesh will be
> conformal (although it is often the case). "
>
> I looked at the source code, but couldnt figure out how to use the
> getfem-matlab interface to create a mesh from
> a slice.
>
> Could someone kindly suggest how I can solve this problem?
>
> Regards
> Arvind
>