Commit a1f01ae 1 parent 331b17b commit a1f01ae Copy full SHA for a1f01ae
File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -843,12 +843,17 @@ void MeMultiPolyMesherImpl::AppendNewCells(const VecInt& a_cells)
843
843
void MeMultiPolyMesherImpl::ReportUnusedRefinePts (const MeMultiPolyMesherIo& a_io,
844
844
const VecPt3d& a_usedPts)
845
845
{
846
- SetPt3d setPts (a_usedPts.begin (), a_usedPts.end ());
846
+ VecPt3d pts (a_usedPts);
847
+ for (auto & p : pts)
848
+ p.z = 0 ;
849
+ SetPt3d setPts (pts.begin (), pts.end ());
847
850
SetPt3d::iterator itEnd = setPts.end ();
848
851
VecStr strLoc;
849
852
for (size_t i = 0 ; i < a_io.m_refPts .size (); ++i)
850
853
{
851
- if (setPts.find (a_io.m_refPts [i].m_pt ) == itEnd)
854
+ Pt3d pp = a_io.m_refPts [i].m_pt ;
855
+ pp.z = 0.0 ;
856
+ if (setPts.find (pp) == itEnd)
852
857
{
853
858
std::stringstream ss;
854
859
ss << " (" << a_io.m_refPts [i].m_pt .x << " , " << a_io.m_refPts [i].m_pt .y << " )" ;
You can’t perform that action at this time.
0 commit comments