mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 18:18:34 +05:00
- const SMDS_MeshFace *FindFace(std::vector<int> nodes_ids) const;
+ const SMDS_MeshFace *FindFace(const std::vector<int>& nodes_ids) const; - static const SMDS_MeshFace* FindFace(std::vector<const SMDS_MeshNode *> nodes); + static const SMDS_MeshFace* FindFace(const std::vector<const SMDS_MeshNode *>& nodes);
This commit is contained in:
parent
c2c2404862
commit
f4bf7b006c
@ -1763,7 +1763,7 @@ const SMDS_MeshElement* SMDS_Mesh::FindElement(int IDelem) const
|
|||||||
//purpose : find polygon
|
//purpose : find polygon
|
||||||
//=======================================================================
|
//=======================================================================
|
||||||
|
|
||||||
const SMDS_MeshFace* SMDS_Mesh::FindFace (std::vector<int> nodes_ids) const
|
const SMDS_MeshFace* SMDS_Mesh::FindFace (const std::vector<int>& nodes_ids) const
|
||||||
{
|
{
|
||||||
int nbnodes = nodes_ids.size();
|
int nbnodes = nodes_ids.size();
|
||||||
std::vector<const SMDS_MeshNode *> poly_nodes (nbnodes);
|
std::vector<const SMDS_MeshNode *> poly_nodes (nbnodes);
|
||||||
@ -1775,7 +1775,7 @@ const SMDS_MeshFace* SMDS_Mesh::FindFace (std::vector<int> nodes_ids) const
|
|||||||
return FindFace(poly_nodes);
|
return FindFace(poly_nodes);
|
||||||
}
|
}
|
||||||
|
|
||||||
const SMDS_MeshFace* SMDS_Mesh::FindFace (std::vector<const SMDS_MeshNode *> nodes)
|
const SMDS_MeshFace* SMDS_Mesh::FindFace (const std::vector<const SMDS_MeshNode *>& nodes)
|
||||||
{
|
{
|
||||||
if ( nodes.size() > 2 && nodes[0] ) {
|
if ( nodes.size() > 2 && nodes[0] ) {
|
||||||
SMDS_ElemIteratorPtr itF = nodes[0]->GetInverseElementIterator(SMDSAbs_Face);
|
SMDS_ElemIteratorPtr itF = nodes[0]->GetInverseElementIterator(SMDSAbs_Face);
|
||||||
|
@ -490,8 +490,8 @@ public:
|
|||||||
const SMDS_MeshNode *n7,
|
const SMDS_MeshNode *n7,
|
||||||
const SMDS_MeshNode *n8);
|
const SMDS_MeshNode *n8);
|
||||||
|
|
||||||
const SMDS_MeshFace *FindFace(std::vector<int> nodes_ids) const;
|
const SMDS_MeshFace *FindFace(const std::vector<int>& nodes_ids) const;
|
||||||
static const SMDS_MeshFace* FindFace(std::vector<const SMDS_MeshNode *> nodes);
|
static const SMDS_MeshFace* FindFace(const std::vector<const SMDS_MeshNode *>& nodes);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \brief Raise an exception if free memory (ram+swap) too low
|
* \brief Raise an exception if free memory (ram+swap) too low
|
||||||
|
Loading…
Reference in New Issue
Block a user