本文整理汇总了C++中LMESHptr::delete_subdiv_mesh方法的典型用法代码示例。如果您正苦于以下问题:C++ LMESHptr::delete_subdiv_mesh方法的具体用法?C++ LMESHptr::delete_subdiv_mesh怎么用?C++ LMESHptr::delete_subdiv_mesh使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LMESHptr
的用法示例。
在下文中一共展示了LMESHptr::delete_subdiv_mesh方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: while
void
LMESH::_merge(BMESHptr bm)
{
// merge the given mesh into this one.
// error checking was done before this protected method was called.
// so this convenient cast is safe:
LMESHptr m = static_pointer_cast<LMESH>(bm);
// merge subdivision meshes (recursively) first. but if this one
// has fewer levels of subdivision, truncate the other one to the
// same number of levels.
if (_subdiv_mesh && m->_subdiv_mesh)
_subdiv_mesh->_merge(m->_subdiv_mesh);
else
m->delete_subdiv_mesh(); // ensure it has no finer level meshes
// Get the dirty vertices from m and put them into this
// mesh's dirty list:
m->_dirty_verts.clear_bits(Lvert::DIRTY_VERT_LIST_BIT);
while (!m->_dirty_verts.empty()) {
add_dirty_vert((Lvert*)m->_dirty_verts.back());
m->_dirty_verts.pop_back();
}
// this concludes the LMESH-specific aspect of the merge
// method. now just continue with the normal merge...
BMESH::_merge(bm);
}