当前位置:网站首页>vs2019配置运行open3d例子
vs2019配置运行open3d例子
2022-07-24 06:02:00 【Arms206】
接上一篇win10与vs2019与open3d与c++编译与动态库dll_Arms206的博客-CSDN博客
进入vs2019建立一个空项目,
菜单栏上方设置Debug与x64,
源文件下新建一个cpp文件,
接下来右键项目->属性,
找到VC++目录,include目录里
添加 D:\Code_2\Open3D_Install_Debug\include
添加 D:\Code_2\Open3D_Install_Debug\include\open3d\3rdparty
//这是上一篇教程中生成的,包含这两个目录,这样在我们的cpp文件中就能
//inclue "open3d/Open3D.h"
//include <Eigen/Dense>
//open3d/Open3D.h 的路径其实为:
//D:\Code_2\Open3D_Install_Debug\include\open3d\Open3D.h
//Eigen/Dense 的路径其实为:
//D:\Code_2\Open3D_Install_Debug\include\open3d\3rdparty\Eigen\Dense
还是在VC++目录,里面的library目录添加:
D:\Code_2\Open3D_Install_Debug\lib
(在该路径下有Open3D.lib文件)
仍在属性页面,找到连接器(Linker),输入(Input)里,
额外依赖里添加Open3D.lib,添加OpenGL32.lib
仍是在属性页面,找到调试(Debugging),
里面的环境(Environment)设为:
path=D:\Code_2\Open3D_Install_Debug\bin
(这是在添加dll动态库路径,在该路径下有Open3D.dll)
然后确定即可,去运行,出来一个可转动的绿球的例子,来自参考的博客,
参考的博客太多了,虽然有些可能过时了,还是要感谢大家的分享,不然都没得看
#include <string>
#include "Open3D/Open3D.h"
int main(int argc, char* argv[]) {
if (argc == 2) {
std::string option(argv[1]);
if (option == "--skip-for-unit-test") {
open3d::utility::LogInfo("Skiped for unit test.");
return 0;
}
}
auto sphere = open3d::geometry::TriangleMesh::CreateSphere(1.0);
sphere->ComputeVertexNormals();
sphere->PaintUniformColor({ 0.0, 1.0, 0.0 });
open3d::visualization::DrawGeometries({ sphere });
return 0;
}边栏推荐
- Redis basic type - ordered set Zset
- Thinking of data analysis -- analyzing the retail industry as a whole -- an all-round and multifaceted detailed analysis
- 华为专家自述:如何成为优秀的工程师
- [learning notes] what happens when the URL is input into the page presentation?
- JMeter distributed pressure measurement
- Introduction to kubernetes (kubernetes benefits)
- Redis basic type - hash
- xavier_normal_ 初始化测试
- 10分钟就能写出来的——25~30K的国外企业招聘面试考题,这不是轻轻松松吗~
- 创建WPF项目
猜你喜欢

Machine learning case: smoking in pregnant women and fetal health
![[lvgl layout] flexible layout](/img/7b/db932e25b13a0b494e7920075cf1e2.png)
[lvgl layout] flexible layout
![[lvgl layout] grid layout](/img/36/47f586f3dc1a114ed7775c4e190872.png)
[lvgl layout] grid layout

(笔记整理未完成)【图论:求单源最短路径】
![[lvgl (2)]](/img/f8/d04183cf74896295382765a9dfd88d.png)
[lvgl (2)]

STM32基于hal库的adc以DMA的多通道采样以及所遇问题解决

Kubernetes' deployment, service concept, dynamic capacity expansion

Redis特殊数据类型-HyperLogLog

kubernetes 的Deployment(部署),Service概念,动态扩缩容

JSONObject按照key的A——Z顺序排序
随机推荐
Sealos packages and deploys kubesphere container platform
Introduction to pyqt5 - student management system
Redis data type - list list
Special effects - when the mouse moves, there will be a custom expression trail
[lvgl layout] grid layout
Camera Hal OEM模块 ---- cmr_grab.c
You are you, and no one can replace you
Introduction, architecture and principle of kubernetes
Record the pits encountered in the deserialization of phpserializer tool class
Redis data type -string (string type)
一个AI玩41个游戏,谷歌最新多游戏决策Transformer综合表现分是DQN的两倍
【微信小程序】一文搞懂条件渲染、列表渲染以及wxss模板样式
Prediction of advertising investment and sales based on regression analysis -- K neighborhood, decision tree, random forest, linear regression, ridge regression
Redis special data type bitmap
别太在意别人的眼光,那会抹杀你的光彩
Special effects - cobweb background effects
Redis basic type - combined with set
Redis数据类型-String(字符串类型)
Create WPF project
Nodejs enables multi process and inter process communication