Ubpa / UHEMesh

an elegant, high-performance and user-friendly halfedge data structure
MIT License
79 stars 8 forks source link

Something wrong in the second TPolygon::AdjPolygons #3

Closed BlauHimmel closed 4 years ago

BlauHimmel commented 4 years ago
// UHEMesh/include/UHEMesh/TPolygon.h
const std::vector<P*> AdjPolygons();
const std::vector<const V*> AdjPolygons() const { return Const(const_cast<TPolygon*>(this)->AdjVertices()); }

Maybe 'AdjPolygons' should be called in the second 'AdjPolygons' function in TPolygon. If so, the type of return value should be const std::vector<const P*>.

Ubpa commented 4 years ago

please check #1