Patch constructor for T0 patches. See PatchConstructor.
More...
#include <T0PatchConstructor.hpp>
|
| bool | isSamePatchType (const FaceHandle &a_FaceHandle, MeshType &a_Mesh, bool check_marked=false) override |
| | Given a face, checks wither the face and the neighborhood arund the face of this patch type.
|
| PatchBuilder | getPatchBuilder (const FaceHandle &a_FaceHandle, MeshType &a_Mesh, bool mark_gathered=false) override |
| | Constructs a PatchBuilder for the patch type at the given face.
|
| virtual bool | isSamePatchType (const VertexHandle &, MeshType &a_Mesh, bool check_marked=false) |
| | Given a vertex, checks wither the vertex and the neighborhood arund the vertex of this patch type.
|
| virtual PatchBuilder | getPatchBuilder (const VertexHandle &, MeshType &a_Mesh, bool mark_gathered=false) |
| | Constructs a PatchBuilder for the patch type at the given vertex.
|
|
| Mat64x14d | getMask () |
| | Retrieves the mask for the T0 patch.
|
| std::vector< VertexHandle > | initNeighborVerts (const FaceHandle &a_FaceHandle, MeshType &a_Mesh) |
| | Gather the list of neighboring vertices around a given face in the expected order to be compatable with mask. ex:
|
| std::string | getGroupName () const |
| | Returns the name of the patch group this constructor handles.
|
|
|
const Mat64x14d | m_Mask |
| | The mask for the T0 patch.
|
Patch constructor for T0 patches. See PatchConstructor.
◆ getGroupName()
| std::string T0PatchConstructor::getGroupName |
( |
| ) |
const |
|
privatevirtual |
Returns the name of the patch group this constructor handles.
This method must be implemented in derived classes to return the specific patch group name.
- Returns
- The name of the patch group.
Implements PatchConstructor.
◆ getMask()
Retrieves the mask for the T0 patch.
- Returns
- The mask as a Mat64x14d object.
◆ getPatchBuilder()
| PatchBuilder T0PatchConstructor::getPatchBuilder |
( |
const FaceHandle & | , |
|
|
MeshType & | a_Mesh, |
|
|
bool | mark_gathered = false ) |
|
overridevirtual |
Constructs a PatchBuilder for the patch type at the given face.
- Parameters
-
| a_Mesh | The mesh to which the face belongs. |
| mark_gathered | If true, all vertices gathered for the patch will be marked. See Helper::mark_face_verts. |
- Returns
- A PatchBuilder configured for the patch type at the given face.
- Exceptions
-
| std::runtime_error | if not implemented in derived class. |
Reimplemented from PatchConstructor.
◆ initNeighborVerts()
| std::vector< VertexHandle > T0PatchConstructor::initNeighborVerts |
( |
const FaceHandle & | a_FaceHandle, |
|
|
MeshType & | a_Mesh ) |
|
private |
Gather the list of neighboring vertices around a given face in the expected order to be compatable with mask. ex:
0 - 1 - 2
| | |
3 - 4 - 5
/ / \ \
6 - 7 - 8 - 9
| | | |
10 -11 -12 - 13
- Parameters
-
| a_FaceHandle | The face handle around for which to initialize neighbors. |
| a_Mesh | The mesh to which the face belongs. |
- Returns
- A vector of neighboring vertex handles.
◆ isSamePatchType()
| bool T0PatchConstructor::isSamePatchType |
( |
const FaceHandle & | , |
|
|
MeshType & | a_Mesh, |
|
|
bool | check_marked = false ) |
|
overridevirtual |
Given a face, checks wither the face and the neighborhood arund the face of this patch type.
- Parameters
-
| a_Mesh | The mesh to which the face belongs. |
| check_marked | If true, the function will return false if any vertex of the face is marked. See Helper::is_marked. |
- Returns
- true if the face and its neighborhood match this patch type.
Reimplemented from PatchConstructor.
The documentation for this class was generated from the following files: