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

📄 test_woio.cc

📁 penMesh is a generic and efficient data structure for representing and manipulating polygonal meshes
💻 CC
字号:
// Test: Use mesh without IO facilities.// // Result: This code must compile without any warning or error!//#include <OpenMesh/Core/Mesh/Types/TriMesh_ArrayKernelT.hh>#include <OpenMesh/Core/Utils/Property.hh>#include <OpenMesh/Core/Math/VectorT.hh>typedef OpenMesh::TriMesh_ArrayKernelT<> Mesh;int main(void){  Mesh mesh;  OpenMesh::VPropHandleT<float> vprop_float;  OpenMesh::FPropHandleT<OpenMesh::Vec6f> fprop_vec6f;    mesh.add_property( vprop_float,  "vprop-float" );  mesh.add_property( fprop_vec6f,  "fprop-vec6f" );  OpenMesh::VertexHandle vh1 = mesh.add_vertex( Mesh::Point(0,0,0) );  OpenMesh::VertexHandle vh2 = mesh.add_vertex( Mesh::Point(1,1,0) );  OpenMesh::VertexHandle vh3 = mesh.add_vertex( Mesh::Point(0,1,1) );  OpenMesh::FaceHandle   fh  = mesh.add_face( vh1, vh2, vh3 );  mesh.property( vprop_float, vh1 ) = 1.0;  mesh.property( fprop_vec6f, fh  ) = OpenMesh::Vec6f(1,2,3,4,5,6);  return 0;}

⌨️ 快捷键说明

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