⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 decimater.cc

📁 penMesh is a generic and efficient data structure for representing and manipulating polygonal meshes
💻 CC
字号:
// using namespace OpenMesh// ---------------------------------------- necessary types// Mesh typetypedef TriMesh_ArrayKernelT<>                      Mesh;// Decimater typetypedef Decimater::DecimaterT< Mesh >               Decimater;// Decimation Module Handle typetypedef Decimater::ModQuadricT< decimater >::Handle HModQuadric;// ---------------------------------------- decimater setupMesh        mesh;             // a mesh objectDecimater   decimater(mesh);  // a decimater object, connected to a meshHModQuadric hModQuadric;      // use a quadric moduledecimater.add( hModQuadric ); // register module at the decimaterstd::cout << decimater.module( hModQuadric ).name() << std::endl;                              // the way to access the module decimater.initialize();       // let the decimater initialize the mesh and the                              // modulesdecimater.decimate();         // do decimation

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -