Comment 2 for bug 1154991

Revision history for this message
Garth Wells (garth-wells) wrote : Re: [Bug 1154991] Re: CSG mesh generation cell size broken

On 14 March 2013 09:12, Benjamin Kehlet <email address hidden> wrote:
> Ok. Do you have a simple example that reproduces this?
>

from dolfin import *
sphere1 = Sphere(Point(0.0, 0.0, 0.0), 1.0)
sphere0 = Sphere(Point(0.0, 0.0, 0.0), 0.2)
g3d = sphere1 - sphere0;
mesh3d = Mesh(g3d, 32);

and put

cout << "*** Cell size: " << r << ", " << cell_size << ", " <<
(double) parameters["edge_size"] << endl;

on line 150 of CSGCGALMeshGenerator3D.cpp.

Sometimes 'r' is roughly right, sometimes it's zero and sometimes it's huge.

Garth

> ** Changed in: dolfin
> Assignee: (unassigned) => Benjamin Kehlet (benjamik)
>
> --
> You received this bug notification because you are a member of DOLFIN
> Core Team, which is subscribed to DOLFIN.
> https://bugs.launchpad.net/bugs/1154991
>
> Title:
> CSG mesh generation cell size broken
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/dolfin/+bug/1154991/+subscriptions