ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
OctreeIO.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <Octree.h>
11 
12 #include <string>
13 
14 #include "CV_io.h"
15 
16 namespace cloudViewer {
17 namespace geometry {}
18 namespace io {
21 std::shared_ptr<geometry::Octree> CV_IO_LIB_API CreateOctreeFromFile(
22  const std::string &filename, const std::string &format = "auto");
23 
27 bool CV_IO_LIB_API ReadOctree(const std::string &filename,
29  const std::string &format = "auto");
30 
36 bool CV_IO_LIB_API WriteOctree(const std::string &filename,
37  const geometry::Octree &octree);
38 
39 bool CV_IO_LIB_API ReadOctreeFromJson(const std::string &filename,
41 
42 bool CV_IO_LIB_API WriteOctreeToJson(const std::string &filename,
43  const geometry::Octree &octree);
44 
45 } // namespace io
46 } // namespace cloudViewer
std::string filename
#define CV_IO_LIB_API
Definition: CV_io.h:15
filament::Texture::InternalFormat format
Octree datastructure.
Definition: Octree.h:250
bool WriteOctree(const std::string &filename, const geometry::Octree &octree)
bool ReadOctreeFromJson(const std::string &filename, geometry::Octree &octree)
std::shared_ptr< geometry::Octree > CreateOctreeFromFile(const std::string &filename, const std::string &format="auto")
bool WriteOctreeToJson(const std::string &filename, const geometry::Octree &octree)
bool ReadOctree(const std::string &filename, geometry::Octree &octree, const std::string &format="auto")
Generic file read and write utility for python interface.
cloudViewer::DgmOctree * octree