Wiki

Clone wiki

mshr / API / Sphere

dolfin::Variable > mshr::CSGGeometry > mshr::CSGPrimitive > mshr::CSGPrimitive3D

mshr::Sphere

A 3D sphere.

Public functions

Sphere(dolfin::Point center, double radius, std::size_t segments=10)

Create sphere at c with radius r.

Parameters| |
----------|-------------|---------------------------------------------------- center |dolfin::Point|center of sphere
radius |double |radius of sphere
segments |std::size_t |resolution when generating a polyhedral appoximation

std::string str(bool verbose) const

Informal string representation.

Parameters| |
----------|----|--------------- verbose |bool|Verbosity level

Type getType() const

Updated