concepts::QuadSubdiv2V Class Reference
Subdivision strategy for quadrilaterals which generates two children. More...
#include <quadsubdiv.hh>
Public Member Functions | |
virtual void | createChildren (Quad &q) const |
If no children of q exist, they are created. More... | |
virtual Edge * | newEdge (const Quad &q, uint i) const |
Returns the ith edge which has been newly created by the subdivision. More... | |
virtual Vertex * | newVertex (const Quad &q, uint i) const |
Return the ith vertex which has been newly created by the subdivision. More... | |
virtual void | removeChildren (Quad &q) const |
If there are children, they are removed. More... | |
virtual | ~QuadSubdiv2V () |
Static Public Member Functions | |
static const QuadSubdiv2V * | instance () |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. More... | |
Static Private Attributes | |
static std::unique_ptr< QuadSubdiv2V > | instance_ |
Detailed Description
Subdivision strategy for quadrilaterals which generates two children.
The parent quad's horizontal axis is subdivided, the vertical is not.
Definition at line 117 of file quadsubdiv.hh.
Constructor & Destructor Documentation
◆ ~QuadSubdiv2V()
|
virtual |
Member Function Documentation
◆ createChildren()
|
virtual |
If no children of q exist, they are created.
Implements concepts::QuadSubdivision.
◆ info()
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::OutputOperator.
◆ instance()
|
static |
◆ newEdge()
Returns the ith edge which has been newly created by the subdivision.
An edge which is the result of a refinement is not newly created.
- Returns
- 0 if the new edge with the index i does not exist
Implements concepts::QuadSubdivision.
◆ newVertex()
Return the ith vertex which has been newly created by the subdivision.
An vertex which is the result of a refinement (ie. of an edge) is not newly created.
- Returns
- 0 if the new vertex with the index i does not exist
Implements concepts::QuadSubdivision.
◆ removeChildren()
|
virtual |
If there are children, they are removed.
The additional edges and vertices are removed as well.
Implements concepts::QuadSubdivision.
Member Data Documentation
◆ instance_
|
staticprivate |
Definition at line 128 of file quadsubdiv.hh.
The documentation for this class was generated from the following file:
- geometry/quadsubdiv.hh