Polyhedral-net Splines
Loading...
Searching...
No Matches
TwoTrianglesTwoQuadsPatchConstructor Class Reference

Patch constructor for patches consisting of two triangles and two quads. Designed for patch next to a polar patch. See PatchConstructor. More...

#include <TwoTrianglesTwoQuadsPatchConstructor.hpp>

Inheritance diagram for TwoTrianglesTwoQuadsPatchConstructor:
PatchConstructor

Public Member Functions

bool isSamePatchType (const VertexHandle &a_VertexHandle, MeshType &a_Mesh, bool check_marked=false) override
 Given a vertex, checks wither the vertex and the neighborhood arund the vertex of this patch type.
PatchBuilder getPatchBuilder (const VertexHandle &a_VertexHandle, MeshType &a_Mesh, bool mark_gathered=false) override
 Constructs a PatchBuilder for the patch type at the given vertex.
Patch getPatch (const std::vector< VertexHandle > &a_NBVertexHandles, MeshType &a_Mesh)
Mat9x3d getPatchMat (const std::vector< VertexHandle > &a_NBVertexHandles, MeshType &a_Mesh)
Public Member Functions inherited from PatchConstructor
virtual bool isSamePatchType (const FaceHandle &, MeshType &a_Mesh, bool check_marked=false)
 Given a face, checks wither the face and the neighborhood arund the face of this patch type.
virtual PatchBuilder getPatchBuilder (const FaceHandle &, MeshType &a_Mesh, bool mark_gathered=false)
 Constructs a PatchBuilder for the patch type at the given face.

Private Member Functions

std::vector< VertexHandle > initNeighborVerts (const VertexHandle &a_VertexHandle, MeshType &a_Mesh)
 Gather the list of neighboring vertices around a given vertex in the expected order to be compatable with mask. ex:
std::string getGroupName () const
 Returns the name of the patch group this constructor handles.

Private Attributes

const Mat9x9d m_Mask

Detailed Description

Patch constructor for patches consisting of two triangles and two quads. Designed for patch next to a polar patch. See PatchConstructor.

Warning
Not in use anymore

Member Function Documentation

◆ getGroupName()

std::string TwoTrianglesTwoQuadsPatchConstructor::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.

◆ getPatchBuilder()

PatchBuilder TwoTrianglesTwoQuadsPatchConstructor::getPatchBuilder ( const VertexHandle & ,
MeshType & a_Mesh,
bool mark_gathered = false )
overridevirtual

Constructs a PatchBuilder for the patch type at the given vertex.

Parameters
a_MeshThe mesh to which the vertex belongs.
mark_gatheredIf true, all vertices gathered for the patch will be marked. See Helper::mark_vert.
Returns
A PatchBuilder configured for the patch type at the given vertex.
Exceptions
std::runtime_errorif not implemented in derived class.

Reimplemented from PatchConstructor.

◆ initNeighborVerts()

std::vector< VertexHandle > TwoTrianglesTwoQuadsPatchConstructor::initNeighborVerts ( const VertexHandle & a_VertexHandle,
MeshType & a_Mesh )
private

Gather the list of neighboring vertices around a given vertex in the expected order to be compatable with mask. ex:

1 --- 2 0 3 6 use same vertex
/ | |
/ | |
(0,3,6) -- 4 --- 5
\ | |
\ | |
7 --- 8
Parameters
a_VertexHandleThe vertex handle around for which to initialize neighbors.
a_MeshThe mesh to which the vertex belongs.
Returns
A vector of neighboring vertex handles.

◆ isSamePatchType()

bool TwoTrianglesTwoQuadsPatchConstructor::isSamePatchType ( const VertexHandle & ,
MeshType & a_Mesh,
bool check_marked = false )
overridevirtual

Given a vertex, checks wither the vertex and the neighborhood arund the vertex of this patch type.

Parameters
a_MeshThe mesh to which the vertex belongs.
check_markedIf true, the function will return false if the vertex is marked. See Helper::is_marked.
Returns
true if the vertex and its neighborhood match this patch type.

Reimplemented from PatchConstructor.

Member Data Documentation

◆ m_Mask

const Mat9x9d TwoTrianglesTwoQuadsPatchConstructor::m_Mask
private
Initial value:
= Matrix({
{0.25, 0.25, 0, 0.25, 0.25, 0, 0, 0, 0},
{0, 0.5, 0, 0, 0.5, 0, 0, 0, 0},
{0, 0.25, 0.25, 0, 0.25, 0.25, 0, 0, 0},
{0, 0, 0, 0.5, 0.5, 0, 0, 0, 0},
{0, 0, 0, 0, 1, 0, 0, 0, 0},
{0, 0, 0, 0, 0.5, 0.5, 0, 0, 0},
{0, 0, 0, 0.25, 0.25, 0, 0.25, 0.25, 0},
{0, 0, 0, 0, 0.5, 0, 0, 0.5, 0},
{0, 0, 0, 0, 0.25, 0.25, 0, 0.25, 0.25}
})
Definition Matrix.hpp:11

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