Version: 8.3.0
VISCOUS_3D::_Shrinker1D Class Reference

Shrinker of nodes on the EDGE. More...

Public Member Functions

void AddEdge (const _LayerEdge *e, _EdgesOnShape &eos, SMESH_MesherHelper &helper)
 Keep a _LayerEdge inflated along the EDGE. More...
 
void Compute (bool set3D, SMESH_MesherHelper &helper)
 Move nodes on EDGE from ends where _LayerEdge's are inflated. More...
 
void RestoreParams ()
 Restore initial parameters of nodes on EDGE. More...
 
void SwapSrcTgtNodes (SMESHDS_Mesh *mesh)
 Replace source nodes by target nodes in shrinked mesh edges. More...
 
const TopoDS_Edge & GeomEdge () const
 
const SMDS_MeshNodeTgtNode (bool is2nd) const
 
const SMDS_MeshNodeSrcNode (bool is2nd) const
 

Private Attributes

TopoDS_Edge _geomEdge
 
vector< double > _initU
 
vector< double > _normPar
 
vector< const SMDS_MeshNode * > _nodes
 
const _LayerEdge_edges [2]
 
bool _done
 

Detailed Description

Shrinker of nodes on the EDGE.

Member Function Documentation

void _Shrinker1D::Compute ( bool  set3D,
SMESH_MesherHelper helper 
)
const TopoDS_Edge& VISCOUS_3D::_Shrinker1D::GeomEdge ( ) const
void _Shrinker1D::RestoreParams ( )

Restore initial parameters of nodes on EDGE.

References _done, _initU, _nodes, and SMDS_EdgePosition::SetUParameter().

Referenced by VISCOUS_3D::_ViscousBuilder::shrink().

const SMDS_MeshNode* VISCOUS_3D::_Shrinker1D::SrcNode ( bool  is2nd) const
const SMDS_MeshNode* VISCOUS_3D::_Shrinker1D::TgtNode ( bool  is2nd) const

Field Documentation

bool VISCOUS_3D::_Shrinker1D::_done
private

Referenced by AddEdge(), Compute(), and RestoreParams().

const _LayerEdge* VISCOUS_3D::_Shrinker1D::_edges[2]
private

Referenced by AddEdge(), Compute(), and SwapSrcTgtNodes().

TopoDS_Edge VISCOUS_3D::_Shrinker1D::_geomEdge
private

Referenced by AddEdge(), Compute(), and SwapSrcTgtNodes().

vector<double> VISCOUS_3D::_Shrinker1D::_initU
private

Referenced by AddEdge(), and RestoreParams().

vector<const SMDS_MeshNode*> VISCOUS_3D::_Shrinker1D::_nodes
private

Referenced by AddEdge(), Compute(), and RestoreParams().

vector<double> VISCOUS_3D::_Shrinker1D::_normPar
private

Referenced by AddEdge(), and Compute().