摘要: OpenMesh 中默认的数据类型都是 float 类型的,如果要将其默认的 float 类型改为 double 类型,可以这么做: #include #include #include #include struct PolyTraits : public OpenMesh::DefaultTraits { typedef OpenMesh::Vec3d Point; ... 阅读全文
posted @ 2016-11-12 20:46 VVingerfly 阅读(651) 评论(0) 推荐(0) 编辑
摘要: 申明全局变量,全局函数一定要在cpp中申明,其他类引用该全局变量就include该cpp的h文件,然后extern一下就好了。否则容易出现该重复定义错误。 这个"容易"是如何解释的呢? 例如 A.h 中如果申明了全局变量 int Global; 在 B.h 中 include "A.h" ..... extern int Global; ...... 则你 ... 阅读全文
posted @ 2016-11-12 00:26 VVingerfly 阅读(9297) 评论(0) 推荐(0) 编辑