本文整理汇总了C++中LMESHptr::remove_face方法的典型用法代码示例。如果您正苦于以下问题:C++ LMESHptr::remove_face方法的具体用法?C++ LMESHptr::remove_face怎么用?C++ LMESHptr::remove_face使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LMESHptr
的用法示例。
在下文中一共展示了LMESHptr::remove_face方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: lv
void
Lface::delete_subdiv_elements()
{
// Make this lightweight, so you can call
// it when you're not sure if you need to:
if (!is_set(SUBDIV_ALLOCATED_BIT))
return;
clear_bit(SUBDIV_ALLOCATED_BIT);
// After this we need to get treated as a "dirty" face.
// That means the vertices have to be dirty
lv(1)->mark_dirty();
lv(2)->mark_dirty();
lv(3)->mark_dirty();
LMESHptr submesh = lmesh()->subdiv_mesh();
assert(submesh);
// Removing a face (or edge) also causes it to remove
// *its* subdiv elements. I.e., this is recursive.
Lface* subface;
if ((subface = subdiv_face_center()))
submesh->remove_face(subface);
if ((subface = subdiv_face1()))
submesh->remove_face(subface);
if ((subface = subdiv_face2()))
submesh->remove_face(subface);
if ((subface = subdiv_face3()))
submesh->remove_face(subface);
Ledge* subedge;
if ((subedge = subdiv_edge1()))
submesh->remove_edge(subedge);
if ((subedge = subdiv_edge2()))
submesh->remove_edge(subedge);
if ((subedge = subdiv_edge3()))
submesh->remove_edge(subedge);
}