📄 decimater.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 + -