Skip to content

Commit 5020ec0

Browse files
syncleqianyizh
authored andcommitted
minor fixes (#784)
1 parent 963643f commit 5020ec0

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

docs/conf.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,9 @@
113113
# so a file named "default.css" will overwrite the builtin "default.css".
114114
html_static_path = ['_static']
115115

116+
# added by Jaesik to hide "View page source"
117+
html_show_sourcelink = False
118+
116119

117120
# -- Options for HTMLHelp output ------------------------------------------
118121

@@ -169,3 +172,6 @@
169172
author, 'Open3D', 'One line description of project.',
170173
'Miscellaneous'),
171174
]
175+
176+
# added by Jaesik to list Python members using the source order
177+
autodoc_member_order = 'bysource'

src/Python/Core/open3d_voxelgrid.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ void pybind_voxelgrid(py::module &m)
4949
.def("has_voxels", &VoxelGrid::HasVoxels)
5050
.def("has_colors", &VoxelGrid::HasColors)
5151
.def_readwrite("voxels", &VoxelGrid::voxels_)
52-
.def_readwrite("colors", &VoxelGrid::colors_);
52+
.def_readwrite("colors", &VoxelGrid::colors_)
53+
.def_readwrite("origin", &VoxelGrid::origin_)
54+
.def_readwrite("voxel_size", &VoxelGrid::voxel_size_);
5355
}
5456

5557
void pybind_voxelgrid_methods(py::module &m)

0 commit comments

Comments
 (0)