#include <mutableMesh.hh>
Public Member Functions | |
uint | ncell () const |
Returns the number of cells in the mesh. | |
Scan2 * | scan () |
virtual void | addCell (Cell *cell, bool holding=true) |
void | replaceCell (Cell2 *cell, bool holding=true) |
Cell2 * | lastCell () const |
Return the latest added cell. | |
void | addMesh (Mesh2 &msh) |
void | connectOppositeEdges (const Edge2d *edge1, const Edge2d *edge2, const Attribute attrib=Attribute(), const Quad2dSubdivision *strategy=0) |
void | connectOppositeEdges (const Sequence< Edge2d * > edges1, const Sequence< Edge2d * > edges2, const Attribute attrib=Attribute(), const Quad2dSubdivision *strategy=0) |
Edge * | ownEdge (Vertex *vtx1, Vertex *vtx2) |
const Sequence< Connector0 * > & | ownConnectors0 () const |
const Sequence< Connector1 * > & | ownConnectors1 () const |
const Sequence< Connector2 * > & | ownConnectors2 () const |
const Sequence< Connector3 * > & | ownConnectors3 () const |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
void | addCell_ (Cell *cell, bool holding=true) |
void | replaceCell_ (Cell *cell, bool holding=true) |
Protected Attributes | |
Sequence< const Cell * > | ownCells_ |
Stored cells. | |
Sequence< Connector0 * > | ownConnectors0_ |
Stored connectors. | |
Sequence< Connector1 * > | ownConnectors1_ |
Sequence< Connector2 * > | ownConnectors2_ |
Sequence< Connector3 * > | ownConnectors3_ |
MultiArray< 2, Edge * > | mapEdges_ |
Maps from vertices to connectors. | |
Class for holding a general mutable mesh of 2D cell where cells and other 2D meshes can be added.
Definition at line 142 of file mutableMesh.hh.
|
inline |
Definition at line 144 of file mutableMesh.hh.
Adds a cell to the mesh, which is by default hold by this object and will be deleted by its destructor.
Implements concepts::MutableMeshBase.
Adds cells of another mesh. The cells will not be deleted internally.
void concepts::MutableMesh2::connectOppositeEdges | ( | const Edge2d * | edge1, |
const Edge2d * | edge2, | ||
const Attribute | attrib = Attribute() , |
||
const Quad2dSubdivision * | strategy = 0 |
||
) |
Adds a quadrilateral connecting the two edges.
New entities, as stored only internally, will be deleted internally.
void concepts::MutableMesh2::connectOppositeEdges | ( | const Sequence< Edge2d * > | edges1, |
const Sequence< Edge2d * > | edges2, | ||
const Attribute | attrib = Attribute() , |
||
const Quad2dSubdivision * | strategy = 0 |
||
) |
Adds quadrilateral connecting respective two edges of the two sequences (with same number of edges). The edges in each sequence have to be connected.
It will be searched for the edge pair of smalled distance and the rest if connected in the order of the given edges, i.e. they have to have matching order (e.g. both counter-clockwise).
New entities, as stored only internally, will be deleted internally.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Mesh.
|
inline |
Return the latest added cell.
Definition at line 161 of file mutableMesh.hh.
|
inlinevirtual |
Returns the number of cells in the mesh.
Implements concepts::Mesh.
Definition at line 146 of file mutableMesh.hh.
|
inlineinherited |
Definition at line 36 of file mutableMesh.hh.
|
inlineinherited |
Definition at line 38 of file mutableMesh.hh.
|
inlineinherited |
Definition at line 40 of file mutableMesh.hh.
|
inlineinherited |
Definition at line 42 of file mutableMesh.hh.
Returns the own edge with the two vertices.
If it does not exist the new edge will be created, stored and added it to maps from vertices
Replaces by cell
the cell with the same connector. This is good to replace the element map while holding the connectivity.
|
protectedinherited |
Replaces by cell
the cell with the same connector. This is good to replace the element map while holding the connectivity.
|
inlinevirtual |
Returns a scanner over the cells of the mesh.
Implements concepts::Mesh2.
Definition at line 147 of file mutableMesh.hh.
|
protectedinherited |
Maps from vertices to connectors.
Definition at line 53 of file mutableMesh.hh.
Stored cells.
Definition at line 46 of file mutableMesh.hh.
|
protectedinherited |
Stored connectors.
Definition at line 48 of file mutableMesh.hh.
|
protectedinherited |
Definition at line 49 of file mutableMesh.hh.
|
protectedinherited |
Definition at line 50 of file mutableMesh.hh.
|
protectedinherited |
Definition at line 51 of file mutableMesh.hh.