文章目录
- 一、简介
- 二、实现代码
- 三、实现效果
- 参考资料
一、简介
对于网格的每个单形,我们都有一个称为BitFlags的组件,该组件存储固定大小的32位向量,用于各种需求。管理这些标志的相关类:
vcg::tri::UpdateFlags
与vcg::tri::UpdateSelection
。主要的标记有:删除标记、边界标记、选择标记以及访问标记等等。
二、实现代码
//VCG
#include <vcg/complex/algorithms/create/platonic.h>
#include <wrap/io_trimesh/import.h>
#include <wrap/io_trimesh/export.h>
#include <vcg/complex/complex.h>//自定义
#include "mesh_type.h"using namespace vcg;
using namespace std;typedef float Scalarm;int main() {//---------------------------读取数据------------------------std::string fileName0 = R"(D:\ComputerLanguage\C+&#