46 Voxel(
const Eigen::Vector3i &grid_index,
const Eigen::Vector3d &color)
52 Eigen::Vector3d
color_ = Eigen::Vector3d(0, 0, 0);
62 void Clear()
override;
63 bool IsEmpty()
const override;
64 Eigen::Vector3d GetMinBound()
const override;
65 Eigen::Vector3d GetMaxBound()
const override;
66 VoxelGrid &Transform(
const Eigen::Matrix4d &transformation)
override;
67 VoxelGrid &Translate(
const Eigen::Vector3d &translation)
override;
68 VoxelGrid &Scale(
const double scale,
bool center =
true)
override;
69 VoxelGrid &Rotate(
const Eigen::Vector3d &rotation,
78 bool HasVoxels()
const {
return voxels_.size() > 0; }
82 Eigen::Vector3i GetVoxel(
const Eigen::Vector3d &point)
const;
84 void FromOctree(
const Octree &octree);
86 std::shared_ptr<geometry::Octree> ToOctree(
const size_t &max_depth)
const;
double voxel_size_
Definition: VoxelGrid.h:89
Definition: Geometry.h:32
std::shared_ptr< VoxelGrid > CreateSurfaceVoxelGridFromPointCloud(const PointCloud &input, double voxel_size)
Definition: VoxelGridFactory.cpp:71
Voxel(const Eigen::Vector3i &grid_index)
Definition: VoxelGrid.h:45
Definition: PointCloud.h:49
bool HasVoxels() const
Definition: VoxelGrid.h:78
VoxelGrid()
Definition: VoxelGrid.h:57
RotationType
Definition: Geometry3D.h:40
~VoxelGrid() override
Definition: VoxelGrid.h:59
Definition: Geometry3D.h:38
~Voxel()
Definition: VoxelGrid.h:48
Eigen::Vector3d origin_
Definition: VoxelGrid.h:90
bool HasColors() const
Definition: VoxelGrid.h:79
char type
Definition: FilePCD.cpp:56
Definition: PinholeCameraIntrinsic.cpp:34
Eigen::Vector3i grid_index_
Definition: VoxelGrid.h:51
Definition: VoxelGrid.h:55
GeometryType
Definition: Geometry.h:34
Eigen::Vector3d color_
Definition: VoxelGrid.h:52
std::vector< Voxel > voxels_
Definition: VoxelGrid.h:91
Definition: VoxelGrid.h:42
Voxel()
Definition: VoxelGrid.h:44
Voxel(const Eigen::Vector3i &grid_index, const Eigen::Vector3d &color)
Definition: VoxelGrid.h:46