相关疑难解决方法(0)

如何使用openGL显示点云

我正在尝试用点云显示OpenGL.

我已经遵循了一些教程,并设法显示一些几何模式但是当我尝试显示从csv文件中读取的点云时,它不起作用.阅读文件工作得很好.

包括

#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <stdlib.h>
#include <stdio.h>
#include <boost/tokenizer.hpp>
#include <sstream>
#include <vector>

#include <SDL/SDL.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <algorithm>

#include "Point.cpp"
#include "drawing.cpp"

using namespace std;
Run Code Online (Sandbox Code Playgroud)

声明

void draw(vector<Point> v);

int pointsNBR = 200;

char *theFileName;
Run Code Online (Sandbox Code Playgroud)

主要方法

int main (int argc, char** argv) {

  if(argv[1]){
    theFileName = argv[1];
  }else{
    cout << "Please enter the file name !!\n";
    exit(0);
  }

  if(argv[2]){
    pointsNBR = atoi(argv[2]);
  }
  PCEngine(theFileName, pointsNBR);

    SDL_Init(SDL_INIT_VIDEO);
  atexit(SDL_Quit); …
Run Code Online (Sandbox Code Playgroud)

c++ opengl point-clouds

7
推荐指数
1
解决办法
1万
查看次数

标签 统计

c++ ×1

opengl ×1

point-clouds ×1