Version: 9.12.0
SMESH_Block::TEdge Class Reference

#include <SMESH_Block.hxx>

Public Member Functions

void Set (const int edgeID, Adaptor3d_Curve *curve, const bool isForward)
 Set edge data. More...
 
void Set (const int edgeID, const gp_XYZ &node1, const gp_XYZ &node2)
 Set coordinates of nodes at edge ends to work with mesh block. More...
 
Adaptor3d_CurveGetCurve () const
 
double EndParam (int i) const
 
int CoordInd () const
 
const gp_XYZ & NodeXYZ (int i) const
 
gp_XYZ Point (const gp_XYZ &theParams) const
 
double GetU (const gp_XYZ &theParams) const
 
 TEdge ()
 
 ~TEdge ()
 Destructor. More...
 

Private Attributes

int myCoordInd
 
double myFirst
 
double myLast
 
Adaptor3d_CurvemyC3d
 
gp_XYZ myNodes [2]
 

Constructor & Destructor Documentation

◆ TEdge()

SMESH_Block::TEdge::TEdge ( )

◆ ~TEdge()

SMESH_Block::TEdge::~TEdge ( )

Destructor.

Member Function Documentation

◆ CoordInd()

int SMESH_Block::TEdge::CoordInd ( ) const

◆ EndParam()

double SMESH_Block::TEdge::EndParam ( int  i) const

◆ GetCurve()

Adaptor3d_Curve* SMESH_Block::TEdge::GetCurve ( ) const

◆ GetU()

double SMESH_Block::TEdge::GetU ( const gp_XYZ &  theParams) const

◆ NodeXYZ()

const gp_XYZ& SMESH_Block::TEdge::NodeXYZ ( int  i) const

Referenced by SMESH_Block::TFace::Set().

◆ Point()

gp_XYZ SMESH_Block::TEdge::Point ( const gp_XYZ &  theParams) const

◆ Set() [1/2]

void SMESH_Block::TEdge::Set ( const int  edgeID,
Adaptor3d_Curve curve,
const bool  isForward 
)

Set edge data.

Parameters
edgeID- block sub-shape ID
curve- edge geometry
isForward- is curve orientation coincides with edge orientation in the block

References SMESH_Block::GetCoordIndOnEdge().

Referenced by StdMeshers_PrismAsBlock::Init(), SMESH_Block::LoadBlockShapes(), and SMESH_Block::LoadMeshBlock().

◆ Set() [2/2]

void SMESH_Block::TEdge::Set ( const int  edgeID,
const gp_XYZ &  node1,
const gp_XYZ &  node2 
)

Set coordinates of nodes at edge ends to work with mesh block.

Parameters
edgeID- block sub-shape ID
node1- coordinates of node with lower ID
node2- coordinates of node with upper ID

References SMESH_Block::GetCoordIndOnEdge().

Field Documentation

◆ myC3d

Adaptor3d_Curve* SMESH_Block::TEdge::myC3d
private

◆ myCoordInd

int SMESH_Block::TEdge::myCoordInd
private

◆ myFirst

double SMESH_Block::TEdge::myFirst
private

◆ myLast

double SMESH_Block::TEdge::myLast
private

◆ myNodes

gp_XYZ SMESH_Block::TEdge::myNodes[2]
private