Commit 21f7139e authored by Alexander Alekhin's avatar Alexander Alekhin

ovis: fix build

parent 39120af3
......@@ -38,10 +38,10 @@ void createPointCloudMesh(const String& name, InputArray vertices, InputArray co
{
int color_type = colors.type();
CV_Assert(_app);
CV_CheckTypeEQ(vertices.type(), CV_32FC3, "")
CV_CheckTypeEQ(vertices.type(), CV_32FC3, "vertices type must be Vec3f");
CV_Assert(vertices.isContinuous());
if (!colors.empty())
CV_CheckType(color_type, color_type == CV_8UC3 || color_type == CV_8UC4);
CV_CheckType(color_type, color_type == CV_8UC3 || color_type == CV_8UC4, "unsupported type");
// material
MaterialPtr mat = MaterialManager::getSingleton().create(name, RESOURCEGROUP_NAME);
......
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