Commit c6ce1117 authored by Dave Moxey's avatar Dave Moxey

Fix for issue with edges not being written in 1D

parent 08b211b5
......@@ -1032,8 +1032,7 @@ void MeshGraphXmlCompressed::WriteEdges(TiXmlElement *geomTag,
}
TiXmlElement *edgeTag =
new TiXmlElement(m_meshDimension == 1 ? "ELEMENT" : "EDGE");
string tag = m_meshDimension == 1 ? "S" : "E";
new TiXmlElement(m_meshDimension == 1 ? "S" : "EDGE");
vector<MeshEdge> edgeInfo;
......@@ -1056,7 +1055,16 @@ void MeshGraphXmlCompressed::WriteEdges(TiXmlElement *geomTag,
edgeTag->LinkEndChild(new TiXmlText(edgeStr));
geomTag->LinkEndChild(edgeTag);
if (m_meshDimension == 1)
{
TiXmlElement *tmp = new TiXmlElement("ELEMENT");
tmp->LinkEndChild(edgeTag);
geomTag->LinkEndChild(tmp);
}
else
{
geomTag->LinkEndChild(edgeTag);
}
}
void MeshGraphXmlCompressed::WriteTris(TiXmlElement *faceTag, TriGeomMap &tris)
......
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