Wiki

Clone wiki

mshr / API / Ellipse

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

mshr::Ellipse

A 2D ellipse.

Public functions

Ellipse(dolfin::Point c, double a, double b, std::size_t segments=32)

Create ellipse centered at c with horizontal semi-axis a and vertical semi-axis b.

Parameters| |
----------|-------------|----------------------------------------------------- c |dolfin::Point|the center
a |double |the horizontal semi-axis
b |double |the vertical semi-axis
segments |std::size_t |the resolution when computing 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 ellipse

double a() const

get horizontal semi-axis

double b() const

get vertical semi-axis

std::size_t segments() const

get resolution when computing polygonal approximation

Updated