Commit f3befad7 authored by Julian Marcon's avatar Julian Marcon

Identify BL ends.

parent 8790dcd5
......@@ -175,6 +175,31 @@ void Generator2D::Process()
Report();
}
void Generator2D::FindBLEnds()
{
for (vector<unsigned>::iterator it = m_blCurves.begin();
it != m_blCurves.end(); ++it)
{
vector<CADVertSharedPtr> vertices =
m_mesh->m_cad->GetCurve(*it)->GetVertex();
for (vector<CADVertSharedPtr>::iterator iv = vertices.begin();
iv != vertices.end(); ++iv)
{
set<CADVertSharedPtr>::iterator is = m_blends.find(*iv);
if (is != m_blends.end())
{
m_blends.erase(is);
}
else
{
m_blends.insert(*iv);
}
}
}
}
void Generator2D::MakeBLPrep()
{
if (m_mesh->m_verbose)
......
......@@ -67,6 +67,8 @@ public:
virtual void Process();
private:
void FindBLEnds();
void MakeBLPrep();
void PeriodicPrep();
......@@ -84,6 +86,7 @@ private:
std::map<unsigned, unsigned> m_periodicPairs;
std::vector<unsigned int> m_blCurves;
std::set<CADVertSharedPtr> m_blends;
LibUtilities::AnalyticExpressionEvaluator m_thickness;
int m_thickness_ID;
std::map<NodeSharedPtr, std::vector<EdgeSharedPtr> > m_nodesToEdge;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment