diff --git a/vcg/simplex/edge/topology.h b/vcg/simplex/edge/topology.h index 20688d78..6156a96d 100644 --- a/vcg/simplex/edge/topology.h +++ b/vcg/simplex/edge/topology.h @@ -75,6 +75,24 @@ void VEStarVE(const typename EdgeType::VertexType* vp, std::vector & } } +template +void VEStarVE(const typename EdgeType::VertexType * vp, + std::vector &starVec, + std::vector & indices) +{ + starVec.clear(); + indices.clear(); + starVec.reserve(16); + indices.reserve(16); + edge::VEIterator 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 template void VEDetach(EdgeType & e)