decimater.cc
来自「penMesh is a generic and efficient data 」· CC 代码 · 共 31 行
CC
31 行
// 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 + =
减小字号Ctrl + -
显示快捷键?