Wiki

Clone wiki

mshr / API / CSGCGALDomain2D

mshr::CSGCGALDomain2D

mshr::CSGCGALDomain2D

Polygonal meshing domain.

Public functions

CSGCGALDomain2D()

Create empty polygon.

CSGCGALDomain2D(const mshr::CSGGeometry *csg)

Construct polygon from Dolfin CSG geometry.

Parameters
csg const

~CSGCGALDomain2D()

Destructor.

CSGCGALDomain2D(const CSGCGALDomain2D &other)

Copy constructor.

Parameters
other const

operator=(const CSGCGALDomain2D &other)

Assignment operator.

Parameters
other const

void join_inplace(const CSGCGALDomain2D &other)

Boolean join.

Parameters
other const

void intersect_inplace(const CSGCGALDomain2D &other)

Boolean intersection.

Parameters
other const

void difference_inplace(const CSGCGALDomain2D &other)

Boolean difference.

Parameters
other const

bool point_in_domain(dolfin::Point p) const

Determine if point is inside the polygon.

Parameters
p dolfin::Point

double compute_boundingcircle_radius() const

Compute the radius of the minimum bounding circle.

std::string str(bool verbose) const

Informal string representation.

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

Updated