Commit c454f092 authored by Alexandre Halbach's avatar Alexandre Halbach

Check geo

parent dac4a566
......@@ -15,6 +15,14 @@ rawarc::rawarc(int physreg, std::vector<std::shared_ptr<rawshape>> inputpoints,
abort();
}
// Make sure the arc is in the xy-plane at zero z:
if (inputpoints[0]->getcoords()->at(2) != 0.0 || inputpoints[1]->getcoords()->at(2) != 0.0 || inputpoints[2]->getcoords()->at(2) != 0.0)
{
std::cout << "Error in 'rawarc' object: arc must be in xy-plane at zero z" << std::endl;
abort();
}
myphysicalregion = physreg;
mynummeshpoints = nummeshpoints;
......
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