Wiki
Clone wikimshr / API / CSGRotation
dolfin::Variable > mshr::CSGGeometry > mshr::CSGOperator
mshr::CSGRotation
Rotate CSG geometry.
Public functions
CSGRotation(std::shared_ptr< CSGGeometry > g, double theta)
Create 2D rotation (2D only)
Parameters| |
----------|-----------------|--------------- g |std::shared_ptr< |A CSG geometry theta |double |Rotate by theta
CSGRotation(std::shared_ptr< CSGGeometry > g, dolfin::Point v, double theta)
Create rotation.
Parameters| |
----------|-----------------|----------------------------------------------------- g |std::shared_ptr< |A CSG geometry
v |dolfin::Point |In 2D: the rotation center. In 3D: the rotation axis. theta |double |Radians to rotate.
CSGRotation(std::shared_ptr< CSGGeometry > g, dolfin::Point rot_axis, dolfin::Point rot_center, double theta)
create 3D rotation
Parameters| |
----------|-----------------|------------------- g |std::shared_ptr< |A CSG geometry
rot_axis |dolfin::Point |The rotation axis
rot_center|dolfin::Point |The rotation center theta |double |Radians to rotate
Type getType() const
std::string str(bool verbose) const
Informal string representation.
Parameters verbose bool
Updated