Commit 39f88260 authored by Michael Turner's avatar Michael Turner

fix meshing issues

parent 6561f222
......@@ -179,12 +179,12 @@ Array<OneD, NekDouble> CADCurveOCE::GetMinMax()
BRep_Tool::Pnt(TopExp::FirstVertex(m_occEdge, Standard_True));
gp_Pnt end = BRep_Tool::Pnt(TopExp::LastVertex(m_occEdge, Standard_True));
locs[0] = start.X();
locs[1] = start.Y();
locs[2] = start.Z();
locs[3] = end.X();
locs[4] = end.Y();
locs[5] = end.Z();
locs[0] = start.X()/1000.0;
locs[1] = start.Y()/1000.0;
locs[2] = start.Z()/1000.0;
locs[3] = end.X()/1000.0;
locs[4] = end.Y()/1000.0;
locs[5] = end.Z()/1000.0;
return locs;
}
......
......@@ -59,11 +59,11 @@ void CADVertOCE::Initialise(int i, TopoDS_Shape in)
m_id = i;
m_occVert = BRep_Tool::Pnt(TopoDS::Vertex(in));
m_node = std::shared_ptr<Node>(
new Node(i - 1, m_occVert.X(), m_occVert.Y(), m_occVert.Z()));
degen = false;
m_node = std::shared_ptr<Node>(new Node(i - 1, m_occVert.X() / 1000.0,
m_occVert.Y() / 1000.0,
m_occVert.Z() / 1000.0));
degen = false;
}
}
}
} // namespace NekMeshUtils
} // namespace Nektar
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