dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #08656
Re: Built-in meshes. UnitSphere
I Hope this works, and that i didn't forget anything.
I've followed the manual..clone add commit bundle
By the way about the smooth( ) function,
does it works only with convex meshes?
(i really don't know about the method...)
But if it is supposed to be generic, test the following code:
---------------------------------------------------------------------------------
UnitCircle mesh30(40,UnitCircle::left ,UnitCircle::sumn);
for (dolfin::uint i=0;i<5;i++)
mesh30.smooth();
File fmesh30("not_circle_smooth.pvd");
fmesh30<<mesh30;
UnitCircle mesh31(40,UnitCircle::left ,UnitCircle::sumn);
File fmesh31("not_circle_not_smooth.pvd");
fmesh31<<mesh31;
---------------------------------------------------------------------------------
and look at the non-convex corners of the meshes.
The smoothed one is broken....
By the way if we replace 'left' by 'crisscross' it seems that
there is no problem.
On Monday 14 July 2008, Anders Logg wrote:
> It looks like you forgot to commit the added files before creating
> the bundle. I can't find UnitSphere.{cpp,h}:
>
> # hg incoming -v ~/contrib/dolfin-lopes-2008-07-10.hg | grep files
> files: dolfin/io/File.cpp dolfin/io/File.h dolfin/io/XYZFile.cpp
> dolfin/io/XYZFile.h files: site-packages/dolfin/meshconvert.py
> files: site-packages/dolfin/meshconvert.py
> files: dolfin/mesh/dolfin_mesh.h
--
Nuno David Lopes
Attachment:
dolfin-lopes-2008-07-14.hg
Description: Binary data
Follow ups
References