12 PrintCloudViewerVersion();
16 utility::LogInfo(
" > ManuallyCropGeometry [--pointcloud/mesh] geometry_file [options]");
25 utility::LogInfo(
" --without_dialog : Disable dialogs. Default files will be used.");
29 int main(
int argc,
char **argv) {
46 voxel_size, with_dialog,
51 if (pcd_ptr ==
nullptr || !pcd_ptr->IsEmpty()) {
56 if (pcd_ptr->size() > 5000000) {
int main(int argc, char **argv)
virtual bool IsEmpty() const override
double point_size_
Point size for PointCloud.
Visualizer with editing capabilities.
bool AddGeometry(std::shared_ptr< const ccHObject > geometry_ptr, bool reset_bounding_box=true) override
Function to add geometry to the scene and create corresponding shaders.
RenderOption & GetRenderOption()
Function to retrieve the associated RenderOption.
void DestroyVisualizerWindow()
Function to destroy a window.
void Run()
Function to activate the window.
bool CreateVisualizerWindow(const std::string &window_name="CloudViewer", const int width=640, const int height=480, const int left=50, const int top=50, const bool visible=true)
Function to create a window and initialize GLFW.
std::shared_ptr< ccMesh > CreateMeshFromFile(const std::string &filename, bool print_progress)
std::shared_ptr< ccPointCloud > CreatePointCloudFromFile(const std::string &filename, const std::string &format, bool print_progress)
std::string GetFileParentDirectory(const std::string &filename)
int GetProgramOptionAsInt(int argc, char **argv, const std::string &option, const int default_value=0)
void SetVerbosityLevel(VerbosityLevel level)
bool ProgramOptionExists(int argc, char **argv, const std::string &option)
double GetProgramOptionAsDouble(int argc, char **argv, const std::string &option, const double default_value=0.0)
Generic file read and write utility for python interface.