mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 18:30:35 +05:00
PAL13460 (PAL EDF 301 force the mesh to go through a point)
in IsMedium(node), return true if node is medium in at least one element
This commit is contained in:
parent
eed04f6cfd
commit
fe605cfaac
@ -363,7 +363,7 @@ bool SMESH_MeshEditor::IsMedium(const SMDS_MeshNode* node,
|
|||||||
{
|
{
|
||||||
bool isMedium = false;
|
bool isMedium = false;
|
||||||
SMDS_ElemIteratorPtr it = node->GetInverseElementIterator(typeToCheck);
|
SMDS_ElemIteratorPtr it = node->GetInverseElementIterator(typeToCheck);
|
||||||
while (it->more()) {
|
while (it->more() && !isMedium ) {
|
||||||
const SMDS_MeshElement* elem = it->next();
|
const SMDS_MeshElement* elem = it->next();
|
||||||
isMedium = elem->IsMediumNode(node);
|
isMedium = elem->IsMediumNode(node);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user