Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bf release 5.1 #64

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _package/xms/mesher/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from . import meshing # NOQA: F401
from .api.mesh import generate_mesh # NOQA: F401

__version__ = '5.1.3'
__version__ = '5.1.4'
9 changes: 7 additions & 2 deletions xmsmesher/meshing/MeMultiPolyMesher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -843,12 +843,17 @@ void MeMultiPolyMesherImpl::AppendNewCells(const VecInt& a_cells)
void MeMultiPolyMesherImpl::ReportUnusedRefinePts(const MeMultiPolyMesherIo& a_io,
const VecPt3d& a_usedPts)
{
SetPt3d setPts(a_usedPts.begin(), a_usedPts.end());
VecPt3d pts(a_usedPts);
for (auto& p : pts)
p.z = 0;
SetPt3d setPts(pts.begin(), pts.end());
SetPt3d::iterator itEnd = setPts.end();
VecStr strLoc;
for (size_t i = 0; i < a_io.m_refPts.size(); ++i)
{
if (setPts.find(a_io.m_refPts[i].m_pt) == itEnd)
Pt3d pp = a_io.m_refPts[i].m_pt;
pp.z = 0.0;
if (setPts.find(pp) == itEnd)
{
std::stringstream ss;
ss << "(" << a_io.m_refPts[i].m_pt.x << ", " << a_io.m_refPts[i].m_pt.y << ")";
Expand Down
Loading