draw_normals.cc

来自「penMesh is a generic and efficient data 」· CC 代码 · 共 15 行

CC
15
字号
#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 + =
减小字号Ctrl + -
显示快捷键?