当前位置:网站首页>环境配置 | 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
边栏推荐
- Development of live broadcast software app, and automatic left-right sliding rotation chart advertising
- Main steps of system test
- 问题求解——嵌套列表
- Learning notes 23-- basic theory of multi-sensor information fusion (Part I)
- How to extract dates from web pages?
- 使用Aggregated APIServer扩展你的kubernetes API
- In the multi network card environment, the service IP registered by Nacos is incorrect, resulting in inaccessible services
- 【软件工程】期末重点
- Fanuc robot_ Introduction to Karel programming (1)
- 网上立案流程
猜你喜欢

开发规范~参数校验异常、异常返回提示切面

Unable to use the bean introduced into the jar package

DX 的 HLSL 和 GL 的 GLSL的 矩阵构建的行列区别

Combine pod identity in aks and secret in CSI driver mount key vault

AQS源码分析

Docker 安装 Redis-5.0.12,详细步骤

Learn more about the practical application of sentinel

面试害怕被问MySQL相关问题 ?这份三万字精华总结 + 面试100 问,吊打面试官完全够了

Common voting governance in Dao

Programmers become gods by digging holes in one year, carrying flags in five years and becoming gods in ten years
随机推荐
How to solve the problem that the computer suddenly can't connect to WiFi
STP spanning tree protocol Foundation
See how sparksql supports enterprise data warehouse
The ktp900f mobile download program of the fail safe mobile panel prompts that the download cannot be performed, and the target device is running or not in the transmission mode
Disk structure
详细了解Redis的八种数据类型及应用场景分析
Zero code can apply data visualization to enterprise management
Pinduoduo updates the merchant live broadcast service agreement and strictly punishes the illegal merchants
Embedded development: tips and tricks -- clean jump from boot loader to application code
AQS源码分析
Extend your kubernetes API with aggregated apiserver
使用Aggregated APIServer扩展你的kubernetes API
NIO、BIO、AIO
Learning notes 23-- basic theory of multi-sensor information fusion (Part I)
envoy获取客户端真实IP
How to compare two or more distributions: a summary of methods from visualization to statistical testing
Docker installs redis-5.0.12. Detailed steps
面试害怕被问MySQL相关问题 ?这份三万字精华总结 + 面试100 问,吊打面试官完全够了
Learning bit segment (1)
Publicity of the second batch of shortlisted enterprises! Annual Top100 smart network supplier selection