Skip to content

Commit a1f01ae

Browse files
-fix warning about refine points
1 parent 331b17b commit a1f01ae

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

xmsmesher/meshing/MeMultiPolyMesher.cpp

+7-2
Original file line numberDiff line numberDiff line change
@@ -843,12 +843,17 @@ void MeMultiPolyMesherImpl::AppendNewCells(const VecInt& a_cells)
843843
void MeMultiPolyMesherImpl::ReportUnusedRefinePts(const MeMultiPolyMesherIo& a_io,
844844
const VecPt3d& a_usedPts)
845845
{
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());
847850
SetPt3d::iterator itEnd = setPts.end();
848851
VecStr strLoc;
849852
for (size_t i = 0; i < a_io.m_refPts.size(); ++i)
850853
{
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)
852857
{
853858
std::stringstream ss;
854859
ss << "(" << a_io.m_refPts[i].m_pt.x << ", " << a_io.m_refPts[i].m_pt.y << ")";

0 commit comments

Comments
 (0)