Wiki

Clone wiki

mshr / API / Circle

dolfin::Variable > mshr::CSGGeometry > mshr::CSGPrimitive > mshr::CSGPrimitive2D

mshr::Circle

A 2D circle.

Public functions

Circle(dolfin::Point c, double r, std::size_t segments=32)

Create circle centered at x with radius r.

Parameters| |
----------|-------------|------------------------------------------------------------- c |dolfin::Point|center.
r |double |radius.
segments |std::size_t |number of segments when computing the polygonal approximation

std::string str(bool verbose) const

get informal string representation

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

Type getType() const

dolfin::Point center() const

get center of circle

double radius() const

get radius of circle

std::size_t segments() const

get number of segments used when computing polygonal approximation

Updated