Version: 9.12.0
StdMeshers_ProjectionUtils::Morph Class Reference

Morph mesh on the target FACE to lie within FACE boundary w/o distortion. More...

#include <StdMeshers_ProjectionUtils.hxx>

Public Member Functions

 Morph (const TSideVector &srcWires)
 triangulate the srcFace in 2D More...
 
bool Perform (SMESH_MesherHelper &tgtHelper, const TSideVector &tgtWires, Handle(ShapeAnalysis_Surface) tgtSurface, const TNodeNodeMap &src2tgtNodes, const bool moveAll)
 Move non-marked target nodes. More...
 

Private Attributes

Delaunay _delaunay
 
SMESH_subMesh_srcSubMesh
 

Detailed Description

Morph mesh on the target FACE to lie within FACE boundary w/o distortion.

Constructor & Destructor Documentation

◆ Morph()

StdMeshers_ProjectionUtils::Morph::Morph ( const TSideVector srcWires)

triangulate the srcFace in 2D

Parameters
[in]srcWires- boundary of the src FACE

References _srcSubMesh, and Face.

Member Function Documentation

◆ Perform()

bool StdMeshers_ProjectionUtils::Morph::Perform ( SMESH_MesherHelper tgtHelper,
const TSideVector tgtWires,
Handle(ShapeAnalysis_Surface)  tgtSurface,
const TNodeNodeMap src2tgtNodes,
const bool  moveAll 
)

Move non-marked target nodes.

Parameters
[in,out]tgtHelper- helper
[in]tgtWires- boundary nodes of the target FACE; must be in the same order as the nodes in srcWires given in the constructor
[in]src2tgtNodes- map of src -> tgt nodes
[in]moveAll- to move all nodes; if false, move only non-marked nodes
Returns
bool - Ok or not

References _delaunay, _srcSubMesh, SMESH_Delaunay::GetBndNodes(), SMESH_MesherHelper::GetMeshDS(), SMESHDS_SubMesh::GetNodes(), SMDS_MeshNode::GetPosition(), SMESH_subMesh::GetSubMeshDS(), SMESH_Delaunay::InitTraversal(), SMESHDS_Mesh::MoveNode(), SMESHDS_SubMesh::NbNodes(), SMESH_Delaunay::NextNode(), and SMDS_MeshNode::X().

Referenced by StdMeshers_Projection_2D::Compute().

Field Documentation

◆ _delaunay

Delaunay StdMeshers_ProjectionUtils::Morph::_delaunay
private

Referenced by Perform().

◆ _srcSubMesh

SMESH_subMesh* StdMeshers_ProjectionUtils::Morph::_srcSubMesh
private

Referenced by Morph(), and Perform().