当前位置:网站首页>环境配置 | VS2017配置OpenMesh源码和环境
环境配置 | VS2017配置OpenMesh源码和环境
2022-06-24 19:38:00 【CSU迦叶】
起因:博主的工作需要查看openmesh的源码,如果采用openmesh官网的二进制文件配置,只能得到环境而无法查看.cc源码。
首先在官网下载下来OpenMesh-9.0.0.zip,解压缩以后cmake(configure+generate),得到build文件夹,然后进入该文件夹打开OpenMesh工程。
看到很多项目,由于之后使用OpenMesh只需要用到
OpenMeshCored.lib
OpenMeshToolsd.lib
这两个库,因此也只需要编译这两个工程。
现在OpenMesh告一段落,再新建一个自己的需要用到OM环境的项目,为了一劳永逸地使用OM环境,可以新建一张属性表,下次别的工程直接添加这张属性表即可。
属性表主要有以下几个地方有内容
1. VC++目录的包含目录和库目录
2. C++常规的附加包含目录
3. C/C++ 预处理器
4. C/C++ 命令行
5. 链接器->输入->附加依赖项
测试代码
#include <iostream>
#include <OpenMesh/Core/IO/MeshIO.hh>
#include <OpenMesh/Core/Mesh/TriMesh_ArraykernelT.hh>
typedef OpenMesh::TriMesh_ArrayKernelT<> MyMesh;
int main()
{
MyMesh mesh;
if (!OpenMesh::IO::read_mesh(mesh, "C:\\Kings3D\\OFF&STL\\wrong.stl")) {
std::cerr << "read error\n";
exit(1);
}
std::cout << "运行结束\n";
}
参考文章
VS2017 配置 openmesh(win 10)_sda42342342423的博客-CSDN博客_配置openmesh
边栏推荐
- Interrupt, interrupted, isinterrupted differences
- Description of transparent transmission function before master and slave of kt6368a Bluetooth chip, 2.4G frequency hopping automatic connection
- LeetCode Algorithm 剑指 Offer II 027. 回文链表
- Structure du disque
- High level application of SQL statements in MySQL database (II)
- CSRF and SSRF for web attacks
- Publicity of the second batch of shortlisted enterprises! Annual Top100 smart network supplier selection
- Basic principles of layer 2 switching
- Fanuc robot_ Introduction to Karel programming (1)
- Nuscenes -- remedies for missing image files or 0-size images encountered during dataset configuration
猜你喜欢
Technology Review: what is the evolution route of container technology? What imagination space is there in the future?
In the era of full programming, should I give up this road?
详细了解关于sentinel的实际应用
NiO, bio, AIO
Relationnet++: a representation of fusion of multiple detection targets based on transformer | neurips 2020
Ansible basic configuration
AQS source code analysis
YGG recent game partners list
Row and column differences in matrix construction of DX HLSL and GL glsl
Programmers become gods by digging holes in one year, carrying flags in five years and becoming gods in ten years
随机推荐
Embedded development: tips and tricks -- clean jump from boot loader to application code
[personal experiment report]
NIO、BIO、AIO
Short video mall system, how does scroll view adapt to the remaining height of the page
Docker installs redis-5.0.12. Detailed steps
Tetris
See how sparksql supports enterprise level data warehouse
OA system -- save the verification code to session
OSPF basic content
Envoy obtain the real IP address of the client
Leetcode: calculate the number of elements less than the current element on the right (sortedlist+bisect\u left)
源码阅读 | OpenMesh读取文本格式stl的过程
How to solve the problem that the computer suddenly can't connect to WiFi
Huada 04A operating mode / low power consumption mode
NiO, bio, AIO
Technology inventory: Technology Evolution and Future Trend Outlook of cloud native Middleware
[ingénierie logicielle] points clés à la fin de la période
Layer 2 and layer 3 forwarding principle based on VLAN
Ideal L9, new trend of intelligent cockpit
[QT] QT event handling