This is a read only copy of the old FEniCS QA forum. Please visit the new QA forum to ask questions

Meaning of the second parameter of Mesh when creating a Mesh from a Sphere or spherical Shell

–1 vote

Dear All

I am currently using mesh=Mesh(S,64)
what does 64 refer to here?

regards

Moritz

asked Jun 29, 2013 by moritzbraun FEniCS User (1,390 points)

1 Answer

+1 vote
 
Best answer

According to ctor in dolfin/mesh/Mesh.h

/// Create mesh defined by Constructive Solid Geometry (CSG)
///
/// *Arguments*
///     geometry (_CSGGeometry_)
///         The CSG geometry
///     resolution (std::size_t)
///         An integer specifying the mesh resolution
Mesh(boost::shared_ptr<const CSGGeometry> geometry,
     std::size_t resolution);

it is an integer specifying the mesh resolution. For more specific meaning you need to look into dolfin/mesh/Mesh.cpp and possibly other implementation files.

answered Jun 30, 2013 by Jan Blechta FEniCS Expert (51,420 points)
selected Jul 2, 2013 by Jan Blechta
...