VTK渲染raw格式的三维点云数据,并纹理贴图(纹理映射)

#include<vtkSmartPointer.h>
#include<vtkRenderWindow.h>
#include<vtkRenderer.h>
#include<vtkRenderWindowInteractor.h>
#include<vtkInteractorStyleTrackballCamera.h>
#include<vtkCylinderSource.h>
#include <vtkPolyDataMapper.h>
#include<vtkPolyData.h>
#include<vtkActor.h>
#include<vtkBMPReader.h>
#include<vtkTexture.h>
#include<vtkLight.h>
#include<vtkCamera.h>
#include<vtkStructuredPointsReader.h>
#include<vtkImageDataGeometryFilter.h>
#include<vtkImageReader.h>
#include<vtkCellArray.h>
#include<vtkIdTypeArray.h>
#include<fstream>
#include<vtkProperty.h>
#include<vtkSphereSource.h>
#include<vtkPolyDataNormals.h>
#include<vtkTextureMapToPlane.h>
#include<vtkTextureMapToCylinder.h>
#include<vtkTransformTextureCoords.h>
#include<vtkPlaneSource.h>
#include<vtkTextureMapToPlane.h>
#include<vtkObject.h>
#include<vtkImageFlip.h>
#include<vtkTransform.h>
#include<vtkTransformPolyDataFilter.h>
#include<vtkTransform2D.h>
#include<vtkTransformFilter.h>
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingOpenGL2);
VTK_MODULE_INIT(vtkInteractionStyle);

#define RAW_FILE "E:\\1.raw"
#define BMP_File "E:\\PatMatch.bmp"
#define TEX_FILE "E:\\1000wMono8_3840_2748.raw"
#define TEX_WIDE 3840
#define TEX_HIGH 2748


//R,S,T轴是否翻转
#define R_FLIP 1
#define S_FLIP 1
#define T_FLIP 1
#define MAX_Point 1000000

typedef struct 3D_POINT__
{
	float fX;
	float fY;
	float fZ;
} 3D_POINT;

3D_POINT  3D_point[MAX_
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值