concepts::QuadSubdiv4 Class Reference
Subdivision strategy for quadrilaterals which generates four 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 | ~QuadSubdiv4 () |
Static Public Member Functions | |
static const QuadSubdiv4 * | 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< QuadSubdiv4 > | instance_ |
Detailed Description
Subdivision strategy for quadrilaterals which generates four children.
This is the default subdivision strategy.
The children are generated by subdividing the four edges and introducing four new edges meeting in the middle of the parent quad.
Definition at line 73 of file quadsubdiv.hh.
Constructor & Destructor Documentation
◆ ~QuadSubdiv4()
|
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 84 of file quadsubdiv.hh.
The documentation for this class was generated from the following file:
- geometry/quadsubdiv.hh