← Back to team overview

dolfin team mailing list archive

Re: Built-in meshes.

 

On Friday 20 June 2008, Anders Logg wrote:
> On Fri, Jun 20, 2008 at 04:08:56PM +0100, Nuno David Lopes wrote:
> > Probably  this isn't the right time but:
> > I've added the following built-in meshes
> > ---------------------------------------------------
> > UnitSphere (it builds a cylinder)
> > Rectangle ((a,b)x(c,d))
> > UnitCircle
> > Cuboid ((a,b)x(c,d)x(e,f)) (probably it should be renamed for block or
> > something, in portuguese it's a "Paralelipípedo")
> > ----------------------------------------------------
>
> Very nice. I've been wanting to have this for some time.
>
> Just some questions about the names:
>
> Why does the UnitSphere build a cylinder? Shouldn't it rather build a
> unit sphere?
It was a mistake...It does a Sphere, but we can get a cylinder to.
 
>
> I would suggest renaming Cuboid to Box.
>
> > And its easy to generalize  all of them, just by the adding of  some
> > parameters.
> >
> > All of them are simple transformations  of UnitSquare and UnitCube
> > (only on the vertices part), the rest is copy/paste.
> > Some doubts remains  about the quality of the meshes (UnitSphere and
> > UnitCircle)
> > Also  it's possible to group all the code in one or two classes instead
> > of  6.
> >
> > I've some pictures and usage examples in
> > http://ptmat.ptmat.fc.ul.pt/%7Endl/other/dolfin.dir/README.html#sec-30
> > So when you feel is the right time i could bundle it.
>
> A bundle would be nice after the release on Monday.
After the release i'll send the Rectangle and Box.
I've  to think and try a litlle more in the Sphere,circle, cylinder cases.
The thing is that the mesh quality of those is bad.
 

-- 
Nuno David Lopes

e-mail:ndl@xxxxxxxxxxxxxx        (FCUL/CMAF)
           nlopes@xxxxxxxxxxxxxxx    (ISEL)
http://ptmat.ptmat.fc.ul.pt/%7Endl/ 

Mon Jun 23 12:07:06 WEST 2008


Follow ups

References