added VEStarVE overload returning also vertex indices
This commit is contained in:
parent
14239a798a
commit
27a4ad3049
|
|
@ -75,6 +75,24 @@ void VEStarVE(const typename EdgeType::VertexType* vp, std::vector<EdgeType *> &
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <class EdgeType>
|
||||||
|
void VEStarVE(const typename EdgeType::VertexType * vp,
|
||||||
|
std::vector<EdgeType *> &starVec,
|
||||||
|
std::vector<int> & indices)
|
||||||
|
{
|
||||||
|
starVec.clear();
|
||||||
|
indices.clear();
|
||||||
|
starVec.reserve(16);
|
||||||
|
indices.reserve(16);
|
||||||
|
edge::VEIterator<EdgeType> vei(vp);
|
||||||
|
while(!vei.End())
|
||||||
|
{
|
||||||
|
starVec.push_back(vei.E());
|
||||||
|
indices.push_back(vei.I());
|
||||||
|
++vei;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Completely detach an edge from the VE adjacency. Useful before deleting it
|
/// Completely detach an edge from the VE adjacency. Useful before deleting it
|
||||||
template <class EdgeType>
|
template <class EdgeType>
|
||||||
void VEDetach(EdgeType & e)
|
void VEDetach(EdgeType & e)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue