#include <topology3D.hh>
Public Member Functions | |
Hexahedron (Quad &quad0, Quad &quad1, Quad &quad2, Quad &quad3, Quad &quad4, Quad &quad5, const Attribute attrib=Attribute()) | |
virtual Hexahedron * | child (uint i, bool mode=0) |
virtual const Hexahedron * | child (uint i) const |
Edge * | edge (uint i) const |
Quad * | face (uint i) const |
Vertex * | vertex (uint i) const |
Z2 | rho (int i) const |
Z4 | tau (int i) const |
void | setStrategy (const HexSubdivision *strategy=0) |
const HexSubdivision * | getStrategy () const |
int | operator== (const Connector &cntr) const |
Comparison operator. | |
const Key & | key () const |
Returns the key of the connector. | |
const Attribute & | attrib () const |
Returns the attribute of the connector. | |
void | setAttrib (uint attrb) |
int | related (const Connector &conn) const |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Protected Attributes | |
Key | key_ |
Unique key of the connector. | |
Attribute | attrib_ |
Attribute. | |
Static Protected Attributes | |
static uint | cnt_ |
Friends | |
class | HexSubdiv8 |
class | HexSubdiv2x |
class | HexSubdiv2y |
class | HexSubdiv2z |
class | HexSubdiv4x |
class | HexSubdiv4y |
class | HexSubdiv4z |
A hexahedron in the topology. Implements the abstract methods from the parent classes to query the children, the vertices, the edges and faces of the hexahedron.
Every face can have two different orientations in the hexahedron (this is stored in the array rho_
– similar to the orientation of an edge in a triangle or quadrilateral, see Triangle or Quad) and it can have four possible rotations (enumerating the vertices).
Definition at line 134 of file topology3D.hh.
concepts::Hexahedron::Hexahedron | ( | Quad & | quad0, |
Quad & | quad1, | ||
Quad & | quad2, | ||
Quad & | quad3, | ||
Quad & | quad4, | ||
Quad & | quad5, | ||
const Attribute | attrib = Attribute() |
||
) |
Constructor. Creates a hexahedron out of six quadrilaterals. The faces must form a hexahedron.
The first quadrilateral is thought to be the floor of the hexahedron and its normal orientation is right screwed into the hexahedron. The normal orientation of the four walls is right screwed out of the hexahedron. The normal orientation of the last quadrilateral (the ceiling) is right screwed into the hexahedron.
The walls of the hexahedron (quadrilaterals 1 to 4) must be given in the proper order: they must follow the normal orientation of the floor.
quad0 | Floor of the hexahedron |
quad1..quad4 | Walls of the hexahedron |
quad5 | Ceiling of the hexahedron |
attrib | Attribute of the hexahedron |
|
inlineinherited |
Returns the attribute of the connector.
Definition at line 108 of file connector.hh.
|
virtual |
Implements concepts::Connector3.
|
virtual |
Returns a child.
If children are created, all faces of the hexahedron are refined and one new edge is introduced. This gives one new hexahedron per vertex and one per face.
i | Index of the child to be returned. |
mode | mode = 1: No children are created mode = 0: If no childs exist, eight new children are created. |
Implements concepts::Connector3.
Returns a 1D component: edge. A 3D element consists of 2D, 1D and 0D elements, the edges can be queried here.
i | Index of the edge |
Implements concepts::Connector3.
Returns a 2D component: face. A 3D element consists of 2D, 1D and 0D elements, the faces can be queried here.
i | Index of the face |
Implements concepts::Connector3.
Definition at line 182 of file topology3D.hh.
|
inline |
Returns the subdivision strategy of this quad.
If you want to find check against another strategy use
quad.getStrategy() == QuadSubdiv2V::instance()
Definition at line 215 of file topology3D.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::Connector.
|
inlineinherited |
Returns the key of the connector.
Definition at line 105 of file connector.hh.
Comparison operator.
Definition at line 102 of file connector.hh.
Checks if this connector is related to conn
. It is being checked if one of the two is an ancestor of the other.
conn | Other connector |
conn
is an ancestor of this connectorconn
is a descendant of this connectorReturns the orientation of a face. See the description of rho_.
i | Index of the face |
Definition at line 188 of file topology3D.hh.
Definition at line 111 of file connector.hh.
void concepts::Hexahedron::setStrategy | ( | const HexSubdivision * | strategy = 0 | ) |
Sets the subdivision strategy of this hexahedron.
If the parameter is set to 0 (or if the method is called without parameter) the strategy is set to the default (if not already set). The default subdivision strategy is subdivision into 8 children.
@param strategy Pointer to an instance of a subdivision strategy.
StrategyChange | if the change is not allowed (the change is not allowed if there are children present) |
Returns the rotation of a face. See the description of tau_.
i | Index of the face |
Definition at line 193 of file topology3D.hh.
Returns a 0D component: vertex A 3D element consists of 2D, 1D and 0D elements, the vertices can be queried here.
i | Index of the vertex |
Implements concepts::Connector3.
|
friend |
Definition at line 136 of file topology3D.hh.
|
friend |
Definition at line 137 of file topology3D.hh.
|
friend |
Definition at line 138 of file topology3D.hh.
|
friend |
Definition at line 139 of file topology3D.hh.
|
friend |
Definition at line 140 of file topology3D.hh.
|
friend |
Definition at line 141 of file topology3D.hh.
|
friend |
Definition at line 135 of file topology3D.hh.
|
protectedinherited |
Definition at line 132 of file connector.hh.
|
staticprotectedinherited |
Counter for the connectors. This counter is used to create the unique key of the connector.
Definition at line 322 of file connector.hh.
|
protectedinherited |
Unique key of the connector.
Definition at line 129 of file connector.hh.