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

📄 draw_normals.cc

📁 penMesh is a generic and efficient data structure for representing and manipulating polygonal meshes
💻 CC
字号:
#include <OpenMesh/Core/Utils/GenProg.hh>// draw a face normal if we have onevoid drawFaceNormal(const MyMesh::Face& _f) {   drawFaceNormal(_f, GenProg::Bool2Type<OM_Check_Attrib(MyMesh::Face, Normal)>()); }// normal exists -> use itvoid drawFaceNormal(const MyMesh::Face& _f, GenProg::Bool2Type<true>) {   glNormal3fv(_f.normal());}// empty dummy (no normals)void drawFaceNormal(const MyMesh::Face& _f, GenProg::Bool2Type<false>){}

⌨️ 快捷键说明

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