本文整理汇总了C++中MNMesh::ClearFFlags方法的典型用法代码示例。如果您正苦于以下问题:C++ MNMesh::ClearFFlags方法的具体用法?C++ MNMesh::ClearFFlags怎么用?C++ MNMesh::ClearFFlags使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MNMesh
的用法示例。
在下文中一共展示了MNMesh::ClearFFlags方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SlicePolyObject
void SymmetryMod::SlicePolyObject (MNMesh & mesh, Point3 & N, float offset) {
// Steve Anderson 9/14/2002
// Using the new "MN_MESH_TEMP_1" flag to override Slice selection behavior,
// which is undesirable here.
mesh.SetFlag (MN_MESH_TEMP_1);
// Slice off everything below the plane:
mesh.Slice (N, offset, MNEPS, false, true);
mesh.ClearFlag (MN_MESH_TEMP_1);
// Make sure we have a valid edge list:
if (!mesh.GetFlag (MN_MESH_FILLED_IN)) mesh.FillInMesh();
// Mark the vertices on the plane boundary:
mesh.ClearVFlags (MN_USER);
for (int i=0; i<mesh.numv; i++) {
if (mesh.v[i].GetFlag (MN_DEAD)) continue;
float dist = DotProd (N, mesh.P(i)) - offset;
if (fabsf(dist) > MNEPS) continue;
mesh.v[i].SetFlag (MN_USER);
}
// Strip out faces on the mirror plane: (These aren't always removed by slice.)
// Find the faces that use only mirror-plane vertices:
mesh.ClearFFlags (MN_USER);
mesh.PropegateComponentFlags (MNM_SL_FACE, MN_USER,
MNM_SL_VERTEX, MN_USER, true);
mesh.DeleteFlaggedFaces (MN_USER);
// Clear out dead components:
mesh.CollapseDeadStructs ();
}