VTK入门范例1
VTK 3D地球
通过VTK的球形增加地球纹理图片,生成一个3D地球
VTK 管道后处理数据流图
source/reader → filter → mapper → actor → renderer → renderWindow → interactor
实现代码如下:
#include <vtkActor.h>
#include …
专注于物联网、微服务、AR/VR、Android、VTK、QT等相关领域的软件设计和研发
通过VTK的球形增加地球纹理图片,生成一个3D地球
VTK 管道后处理数据流图
source/reader → filter → mapper → actor → renderer → renderWindow → interactor
实现代码如下:
#include <vtkActor.h>
#include …
打开 wind.vtk 算例文件
添加 Slice filter,该切面用于最后流线绘制的表面,
添加 SurfaceVectors filter, 其用于将向量场映射到该平面
添加 MaskPoints filter, 其用于将向量场映射到该平面
On Ratio 设置采样点 …
通过Infomation可以看到 wind_speed 标量和 wind_velocity 矢量两个量
配置参数:
Origin : 17.5 100 0
Point1 : 17.5 …
创建原始的球形坐标,用来制作地球的外形。
设置参数:Theta Resolution: 80
设置参数:Phi Resolution: 80
…
cd /etc/yum.repo.d/
touch google-chrome.repo
[google-chrome]
name=google-chrome …
mkdir minio
cd minio/
wget https://dl.minio.io/server/minio/release/linux-amd64/minio …
mattermost是一款提供给企业作为私有聊天的工具
具体参考:https://docs.mattermost.com/install/prod-docker.html
我们选择最简单Centos上安装:
使用脚步进行安装:
curl -fsSL https://get.docker.com …
wget https://dl.google.com/android/repository/android-ndk-r16b-linux-x86_64.zip
7za x android-ndk-r16b-linux-x86_64.zip
设置环境变量:
$] vim …
$] yum install centos-release-scl -y
$] yum install rh-python36 -y
$] python --verison
$] yum groupinstall 'Development Tools' -y
$] yum install python-pip -y
$] pip …
首先安装libstdc,glibc静态库
yum install libstdc++-static glibc-static -y
CMakefile中增加 set(CMAKE_EXE_LINKER_FLAGS “-static”) 即可
CMakeLists.txt …