Wiki

Clone wiki

mshr / API / Cylinder

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

mshr::Cylinder

A 3D cylinder.

Public functions

Cylinder(dolfin::Point top, dolfin::Point bottom, double top_radius, double bottom_radius, std::size_t segments=32)

Create cylinder defined by upper and lower center and radius respectively.

Parameters | |
-------------|-------------|----------------------------------------------------------------------- top |dolfin::Point|Center at top of cylinder.
bottom |dolfin::Point|Center at bottom of cylinder.
top_radius |double |Radius top of cylinder.
bottom_radius|double |Radius at botoom of cylinder.
segments |std::size_t |number of faces on the side when generating a polyhedral approximation.

std::string str(bool verbose) const

Informal string representation.

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

Type getType() const

Updated