本文整理汇总了C++中MeshPtr::cleanUp方法的典型用法代码示例。如果您正苦于以下问题:C++ MeshPtr::cleanUp方法的具体用法?C++ MeshPtr::cleanUp怎么用?C++ MeshPtr::cleanUp使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MeshPtr
的用法示例。
在下文中一共展示了MeshPtr::cleanUp方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: if
void
pcl::ihs::Integration::age (const MeshPtr& mesh, const bool cleanup) const
{
for (Mesh::VertexIterator it = mesh->beginVertexes (); it!=mesh->endVertexes (); ++it)
{
if(it->age < age_max_)
{
// Point survives
++it->age;
}
else if(it->age == age_max_) // Judgement Day
{
if(it->visconf.getValue () < visconf_min_)
{
// Point dies (no need to transform it)
mesh->deleteVertex (*it);
}
else
{
// Point becomes immortal
it->age = std::numeric_limits <unsigned int>::max ();
}
}
}
if (cleanup)
{
mesh->cleanUp ();
}
}
示例2: if
void
pcl::ihs::Integration::age (const MeshPtr& mesh, const bool cleanup) const
{
for (unsigned int i=0; i<mesh->sizeVertices (); ++i)
{
PointIHS& pt = mesh->getVertexDataCloud () [i];
if (pt.age < max_age_)
{
// Point survives
++(pt.age);
}
else if (pt.age == max_age_) // Judgement Day
{
if (pcl::ihs::countDirections (pt.directions) < min_directions_)
{
// Point dies (no need to transform it)
mesh->deleteVertex (VertexIndex (i));
}
else
{
// Point becomes immortal
pt.age = std::numeric_limits <unsigned int>::max ();
}
}
}
if (cleanup)
{
mesh->cleanUp ();
}
}
示例3:
void
pcl::ihs::Integration::removeUnfitVertices (const MeshPtr& mesh, const bool cleanup) const
{
for (unsigned int i=0; i<mesh->sizeVertices (); ++i)
{
if (pcl::ihs::countDirections (mesh->getVertexDataCloud () [i].directions) < min_directions_)
{
// Point dies (no need to transform it)
mesh->deleteVertex (VertexIndex (i));
}
}
if (cleanup)
{
mesh->cleanUp ();
}
}