Skip to content
Snippets Groups Projects
Commit c3666aea authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

fix bottom of rough box

parent b13f6144
No related branches found
No related tags found
1 merge request!2715Replace single crossCorrelationLength parameter by CrosscorrelationModel individual for each interface
Pipeline #155937 passed
......@@ -47,11 +47,13 @@ Geometry::Mesh Geometry::meshBox()
Geometry::Mesh Geometry::meshRoughBox(const double2d_t* topR, const double2d_t* bottomR)
{
ASSERT(topR);
ASSERT(topR->size());
ASSERT(topR || bottomR);
const double2d_t* base = topR ? topR : bottomR;
ASSERT(base->size());
const auto& t = *topR;
const auto& b = bottomR ? *bottomR : double2d_t(t.size(), std::vector<double>(t[0].size()));
const auto& t = topR ? *topR : double2d_t(base->size(), std::vector<double>(base[0].size()));
const auto& b =
bottomR ? *bottomR : double2d_t(base->size(), std::vector<double>(base[0].size()));
float const D = 0.5f;
......
......@@ -71,7 +71,7 @@ PlottableBody::PlottableBody(GeometricID::Key gky_, const double2d_t* top, const
, m_color(clrObject)
, gky(gky_)
{
if (top)
if (top || bottom)
m_geo = std::shared_ptr<Geometry>(new Geometry(gky, top, bottom));
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment