Enhance API of mesh selection
This commit is contained in:
@@ -1794,6 +1794,16 @@ MeshRefPointToFacets::operator[] (unsigned long pos) const
|
||||
return _map[pos];
|
||||
}
|
||||
|
||||
void MeshRefPointToFacets::AddNeighbour(unsigned long pos, unsigned long facet)
|
||||
{
|
||||
_map[pos].insert(facet);
|
||||
}
|
||||
|
||||
void MeshRefPointToFacets::RemoveNeighbour(unsigned long pos, unsigned long facet)
|
||||
{
|
||||
_map[pos].erase(facet);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
void MeshRefFacetToFacets::Rebuild (void)
|
||||
@@ -1881,6 +1891,16 @@ MeshRefPointToPoints::operator[] (unsigned long pos) const
|
||||
return _map[pos];
|
||||
}
|
||||
|
||||
void MeshRefPointToPoints::AddNeighbour(unsigned long pos, unsigned long facet)
|
||||
{
|
||||
_map[pos].insert(facet);
|
||||
}
|
||||
|
||||
void MeshRefPointToPoints::RemoveNeighbour(unsigned long pos, unsigned long facet)
|
||||
{
|
||||
_map[pos].erase(facet);
|
||||
}
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
void MeshRefEdgeToFacets::Rebuild (void)
|
||||
|
||||
@@ -374,6 +374,8 @@ public:
|
||||
std::set<unsigned long> NeighbourPoints(const std::vector<unsigned long>& , int level) const;
|
||||
void Neighbours (unsigned long ulFacetInd, float fMaxDist, MeshCollector& collect) const;
|
||||
Base::Vector3f GetNormal(unsigned long) const;
|
||||
void AddNeighbour(unsigned long, unsigned long);
|
||||
void RemoveNeighbour(unsigned long, unsigned long);
|
||||
|
||||
protected:
|
||||
void SearchNeighbours(const MeshFacetArray& rFacets, unsigned long index, const Base::Vector3f &rclCenter,
|
||||
@@ -432,6 +434,8 @@ public:
|
||||
const std::set<unsigned long>& operator[] (unsigned long) const;
|
||||
Base::Vector3f GetNormal(unsigned long) const;
|
||||
float GetAverageEdgeLength(unsigned long) const;
|
||||
void AddNeighbour(unsigned long, unsigned long);
|
||||
void RemoveNeighbour(unsigned long, unsigned long);
|
||||
|
||||
protected:
|
||||
const MeshKernel &_rclMesh; /**< The mesh kernel. */
|
||||
|
||||
Reference in New Issue
Block a user