|
|
|
cellMatcher Class ReferenceBase class for cellshape matchers (hexMatch, prismMatch, etc.). These are classes which given a mesh and cell number find out the orientation of the cellShape and construct cell-vertex to mesh-vertex mapping and cell-face to mesh-face mapping. More...
Inheritance diagram for cellMatcher:
![]()
Collaboration diagram for cellMatcher:
![]()
Detailed DescriptionBase class for cellshape matchers (hexMatch, prismMatch, etc.). These are classes which given a mesh and cell number find out the orientation of the cellShape and construct cell-vertex to mesh-vertex mapping and cell-face to mesh-face mapping.
hexMatcher hex(mesh);
cellShape shape;
..
bool isHex = hex.match(cellI, shape);
Alternatively there is direct access to the vertex and face mapping:
const labelList& hexVertLabels = hex.vertLabels();
const labelList& hexFaceLabels = hex.faceLabels();
Process of cellShape recognition consists of following steps:
The whole calculation is done such that no lists are allocated during cell checking. E.g. localFaces_ are always sized to hold max. number of possible face vertices and a separate list is filled which holds the actusl face sizes. For now all hex-degenerates implemented. Numbering taken from picture in demoGuide.
Definition at line 95 of file cellMatcher.H. Constructor & Destructor Documentation
Definition at line 208 of file cellMatcher.H.
Member Function Documentation
Step along face either in righthand or lefthand direction.
Definition at line 104 of file cellMatcherI.H.
Calculates localFaces. Returns number of local vertices (or -1. if more than vertPerCell). Definition at line 83 of file cellMatcher.C.
Given start,end of edge lookup both faces sharing it and return. face != localFaceI Definition at line 236 of file cellMatcher.C.
Create list with incrementing labels.
Definition at line 30 of file cellMatcher.C. References forAll.
Definition at line 24 of file cellMatcherI.H.
Definition at line 36 of file cellMatcherI.H.
Definition at line 42 of file cellMatcherI.H.
Definition at line 48 of file cellMatcherI.H.
Definition at line 54 of file cellMatcherI.H.
Definition at line 60 of file cellMatcherI.H.
Definition at line 66 of file cellMatcherI.H.
Definition at line 72 of file cellMatcherI.H.
Definition at line 78 of file cellMatcherI.H.
Definition at line 271 of file cellMatcher.C.
Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Hash value of all face sizes of this shape. Can be used for. quick initial recognition. Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher. Check whether number of face sizes match the shape.
Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Low level shape recognition. Return true if matches. Works in detection mode only (checkOnly=true) or in exact matching. Returns true and sets vertLabels_. Needs faces, faceOwner of all faces in 'mesh' and cell number and labels of faces for this cell. cellI only used in combination with faceOwner to detect owner status. Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Exact match. Uses faceSizeMatch. Returns true if cell matches shape exactly. Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Exact match given all the faces forming a cell. No checks. on whether faces match up and form a closed shape. Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Like isA but also constructs a cellShape (if shape matches).
Implemented in hexMatcher, prismMatcher, pyrMatcher, tetMatcher, tetWedgeMatcher, and wedgeMatcher.
Member Data Documentation
pointFaceIndex[localVertI][localFaceI] is index in localFace where localVertI is. Definition at line 136 of file cellMatcher.H.
After matching: holds mesh vertices in cellmodel order.
Definition at line 139 of file cellMatcher.H.
Definition at line 147 of file cellMatcher.H.
The documentation for this class was generated from the following files:
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||