Version: 9.12.0
SMDS_Mesh.cxx File Reference
#include "SMDS_Mesh.hxx"
#include "SMDS_ElementFactory.hxx"
#include "SMDS_ElementHolder.hxx"
#include "SMDS_SetIterator.hxx"
#include "SMDS_SpacePosition.hxx"
#include "SMDS_UnstructuredGrid.hxx"
#include <utilities.h>
#include <vtkUnstructuredGrid.h>
#include <vtkCell.h>
#include <vtkUnsignedCharArray.h>
#include <vtkCellLinks.h>
#include <vtkIdList.h>
#include <algorithm>
#include <iostream>
#include <fstream>
#include <boost/container/flat_set.hpp>
#include <sys/sysinfo.h>
Include dependency graph for SMDS_Mesh.cxx:

Macros

#define CHECKMEMORY_INTERVAL   100000
 
#define MYASSERT(val)   if (!(val)) throw SALOME_Exception(LOCALIZED("assertion not verified"));
 

Functions

static std::set< const SMDS_MeshElement * > * intersectionOfSets (std::set< const SMDS_MeshElement * > vs[], int numberOfSets)
 Do intersection of sets (more than 2) More...
 
static std::set< const SMDS_MeshElement * > * getFinitElements (const SMDS_MeshElement *element)
 Return the list of finite elements owning the given element: elements containing all the nodes of the given element, for instance faces and volumes containing a given edge. More...
 
static std::set< const SMDS_MeshElement * > * getExclusiveNodes (std::set< const SMDS_MeshElement * > &elements)
 Return the std::list of nodes used only by the given elements. More...
 

Macro Definition Documentation

◆ CHECKMEMORY_INTERVAL

#define CHECKMEMORY_INTERVAL   100000

◆ MYASSERT

#define MYASSERT (   val)    if (!(val)) throw SALOME_Exception(LOCALIZED("assertion not verified"));

Function Documentation

◆ getExclusiveNodes()

static std::set<const SMDS_MeshElement*>* getExclusiveNodes ( std::set< const SMDS_MeshElement * > &  elements)
static

Return the std::list of nodes used only by the given elements.

References SMDS_MeshNode::GetInverseElementIterator().

Referenced by SMDS_Mesh::RemoveElement().

◆ getFinitElements()

static std::set<const SMDS_MeshElement*>* getFinitElements ( const SMDS_MeshElement element)
static

Return the list of finite elements owning the given element: elements containing all the nodes of the given element, for instance faces and volumes containing a given edge.

References SMDS_MeshNode::GetInverseElementIterator(), intersectionOfSets(), SMDS_MeshElement::NbNodes(), and SMDS_MeshElement::nodeIterator().

Referenced by SMDS_Mesh::RemoveElement().

◆ intersectionOfSets()

static std::set<const SMDS_MeshElement*>* intersectionOfSets ( std::set< const SMDS_MeshElement * >  vs[],
int  numberOfSets 
)
static

Do intersection of sets (more than 2)

Referenced by getFinitElements().