Class documentation of Concepts

Loading...
Searching...
No Matches

#include <quadsubdiv.hh>

Inheritance diagram for concepts::QuadSubdiv4:
concepts::QuadSubdivision concepts::Subdivision concepts::OutputOperator

Public Member Functions

virtual void createChildren (Quad &q) const
 
virtual void removeChildren (Quad &q) const
 
virtual EdgenewEdge (const Quad &q, uint i) const
 
virtual VertexnewVertex (const Quad &q, uint i) const
 

Static Public Member Functions

static const QuadSubdiv4instance ()
 

Protected Member Functions

virtual std::ostream & info (std::ostream &os) const
 Returns information in an output stream.
 

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.

Author
Philipp Frauenfelder, 2002

Definition at line 73 of file quadsubdiv.hh.

Member Function Documentation

◆ createChildren()

virtual void concepts::QuadSubdiv4::createChildren ( Quad q) const
virtual

If no children of q exist, they are created.

Implements concepts::QuadSubdivision.

◆ info()

virtual std::ostream & concepts::QuadSubdiv4::info ( std::ostream &  os) const
protectedvirtual

Returns information in an output stream.

Reimplemented from concepts::OutputOperator.

◆ newEdge()

virtual Edge * concepts::QuadSubdiv4::newEdge ( const Quad q,
uint  i 
) const
virtual

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.

Parameters
qQuad which has been refined
iIndex of the new edge
Returns
0 if the new edge with the index i does not exist

Implements concepts::QuadSubdivision.

◆ newVertex()

virtual Vertex * concepts::QuadSubdiv4::newVertex ( const Quad q,
uint  i 
) const
virtual

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.

Parameters
qQuad which has been refined
iIndex of the new vertex
Returns
0 if the new vertex with the index i does not exist

Implements concepts::QuadSubdivision.

◆ removeChildren()

virtual void concepts::QuadSubdiv4::removeChildren ( Quad q) const
virtual

If there are children, they are removed. The additional edges and vertices are removed as well.

Implements concepts::QuadSubdivision.


The documentation for this class was generated from the following file: