Version: 8.3.0
FaceQuadStruct::Side Struct Reference

#include <StdMeshers_Quadrangle_2D.hxx>

Data Structures

struct  Contact
 

Public Member Functions

 Side (StdMeshers_FaceSidePtr theGrid=StdMeshers_FaceSidePtr())
 Constructor of a side of quad. More...
 
Sideoperator= (const Side &otherSide)
 Side copying. More...
 
 operator StdMeshers_FaceSidePtr ()
 
 operator const StdMeshers_FaceSidePtr () const
 
void AddContact (int ip, Side *side, int iop)
 Sets up a contact between this and another side. More...
 
int ToSideIndex (int quadNodeIndex) const
 Converts node index of a quad to node index of this side. More...
 
int ToQuadIndex (int sideNodeIndex) const
 Converts node index of this side to node index of a quad. More...
 
bool IsForced (int nodeIndex) const
 Checks if a node is enforced. More...
 
bool IsReversed () const
 
bool Reverse (bool keepGrid)
 Reverse the side. More...
 
int NbPoints () const
 
double Param (int nodeIndex) const
 Returns a normalized parameter of a point indexed within a quadrangle. More...
 
double Length (int from=-1, int to=-1) const
 Returns side length. More...
 
gp_XY Value2d (double x) const
 Returns UV by a parameter normalized within a quadrangle. More...
 
const UVPtStructFirst () const
 
const UVPtStructLast () const
 
const std::vector< UVPtStruct > & GetUVPtStruct (bool isXConst=0, double constValue=0) const
 

Data Fields

StdMeshers_FaceSidePtr grid
 
int from
 
int to
 
int di
 
std::set< intforced_nodes
 
std::vector< Contactcontacts
 
int nbNodeOut
 

Constructor & Destructor Documentation

FaceQuadStruct::Side::Side ( StdMeshers_FaceSidePtr  theGrid = StdMeshers_FaceSidePtr())

Constructor of a side of quad.

Member Function Documentation

void FaceQuadStruct::Side::AddContact ( int  ip,
Side side,
int  iop 
)
const UVPtStruct& FaceQuadStruct::Side::First ( ) const
const std::vector<UVPtStruct>& FaceQuadStruct::Side::GetUVPtStruct ( bool  isXConst = 0,
double  constValue = 0 
) const
bool FaceQuadStruct::Side::IsForced ( int  nodeIndex) const

Checks if a node is enforced.

Parameters
[in]nodeIndex- an index of a node in a size
Returns
bool - true if the node is forced

Referenced by StdMeshers_Quadrangle_2D::addEnforcedNodes().

bool FaceQuadStruct::Side::IsReversed ( ) const

References from, nbNodeOut, and to.

Referenced by Last().

const UVPtStruct& FaceQuadStruct::Side::Last ( ) const
double FaceQuadStruct::Side::Length ( int  from = -1,
int  to = -1 
) const

Returns side length.

References Abs(), Max(), and Min().

FaceQuadStruct::Side::operator const StdMeshers_FaceSidePtr ( ) const

References grid.

FaceQuadStruct::Side::operator StdMeshers_FaceSidePtr ( )

References grid.

FaceQuadStruct::Side & FaceQuadStruct::Side::operator= ( const Side otherSide)

Side copying.

References contacts, di, forced_nodes, from, grid, nbNodeOut, and to.

double FaceQuadStruct::Side::Param ( int  nodeIndex) const

Returns a normalized parameter of a point indexed within a quadrangle.

bool FaceQuadStruct::Side::Reverse ( bool  keepGrid)

Reverse the side.

int FaceQuadStruct::Side::ToQuadIndex ( int  sideNodeIndex) const

Converts node index of this side to node index of a quad.

int FaceQuadStruct::Side::ToSideIndex ( int  quadNodeIndex) const

Converts node index of a quad to node index of this side.

Referenced by StdMeshers_Quadrangle_2D::addEnforcedNodes(), and StdMeshers_Quadrangle_2D::splitQuad().

gp_XY FaceQuadStruct::Side::Value2d ( double  x) const

Returns UV by a parameter normalized within a quadrangle.

Field Documentation

std::vector<Contact> FaceQuadStruct::Side::contacts
int FaceQuadStruct::Side::di

Referenced by operator=().

std::set<int> FaceQuadStruct::Side::forced_nodes
int FaceQuadStruct::Side::nbNodeOut