displayer rerender only when holding left click on displayer. #4605
Unanswered
MeyerBuaharon
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I made a code in cpp using open3d, and I tried to make it so I run a number of PLYs and show them one after the other.
`
#include <unistd.h>
#include
#include
#include "open3d/Open3D.h"
#include "open3d/geometry/TriangleMesh.h"
#include "open3d/io/TriangleMeshIO.h"
#include "open3d/utility/DataManager.h"
#include "open3d/visualization/visualizer/GuiVisualizer.h"
using namespace open3d;
using namespace open3d::visualization;
using namespace std;
std::shared_ptrgeometry::PointCloud pointcloud_ptr_A(new geometry::PointCloud);
void LoadPLY(geometry::PointCloud& pointcloud_ptr,
char pointcloud_type,
int index) {
if (pointcloud_type == 'A') {
io::ReadPointCloud("../SplitCube/" + std::to_string(index) + "A.ply",
pointcloud_ptr);
}
// does something else...
}
void StartPointCloud(std::shared_ptrgui::SceneWidget widget, std::shared_ptropen3d::visualization::visualizer::O3DVisualizer window, int index)
{
}
void run(std::shared_ptropen3d::visualization::visualizer::O3DVisualizer window, std::shared_ptrgui::SceneWidget widget)
{
int index = 0;
while (true)
{
std::cout << "Thread Is Running:" << std::endl;
}
int main(int argc, char* argv[]) {
int width = 1024;
int height = 768;
std::string window_name = "Open3D";
Eigen::Vector3f center = {0.0, 0.0, 0.0};
Eigen::Vector3f eye = {125.0, 125.0, 125.0};
Eigen::Vector3f up = {0.0, 0.0, 1.0};
}
`
Can I get any pointers on what I did wrong here?
Beta Was this translation helpful? Give feedback.
All reactions