Skip to content

Commit

Permalink
fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Dec 31, 2024
1 parent 3b9b765 commit 00bf217
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion easy3d/viewer/viewer.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ namespace easy3d {
* viewer.run();
* \endcode
* The default Easy3D viewer can be easily extended by deriving your enhanced viewer from it
* by re-implementing some of its unctions (see the documentation of Viewer).
* by re-implementing some of its functions (see the documentation of Viewer).
*/
class Viewer
{
Expand Down
2 changes: 1 addition & 1 deletion python/bindings/easy3d/viewer/viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ struct PyCallBack_easy3d_Viewer : public easy3d::Viewer {
void bind_easy3d_viewer_viewer(pybind11::module_& m)
{
{ // easy3d::Viewer file:easy3d/viewer/viewer.h line:60
pybind11::class_<easy3d::Viewer, std::shared_ptr<easy3d::Viewer>, PyCallBack_easy3d_Viewer> cl(m, "Viewer", "The built-in Easy3D viewer.\n \n\n\n \n Easy3D is really easy to use. That's why it has such a name.\n To use the viewer, simply create an instance of Viewer, and call the run() method, e.g.,\n \n\n\n\n\n The default Easy3D viewer can be easily extended by deriving your enhanced viewer from it\n by re-implementing some of its unctions (see the documentation of Viewer).");
pybind11::class_<easy3d::Viewer, std::shared_ptr<easy3d::Viewer>, PyCallBack_easy3d_Viewer> cl(m, "Viewer", "The built-in Easy3D viewer.\n \n\n\n \n Easy3D is really easy to use. That's why it has such a name.\n To use the viewer, simply create an instance of Viewer, and call the run() method, e.g.,\n \n\n\n\n\n The default Easy3D viewer can be easily extended by deriving your enhanced viewer from it\n by re-implementing some of its functions (see the documentation of Viewer).");
cl.def( pybind11::init( [](){ return new easy3d::Viewer(); }, [](){ return new PyCallBack_easy3d_Viewer(); } ), "doc");
cl.def( pybind11::init( [](const std::string & a0){ return new easy3d::Viewer(a0); }, [](const std::string & a0){ return new PyCallBack_easy3d_Viewer(a0); } ), "doc");
cl.def( pybind11::init( [](const std::string & a0, int const & a1){ return new easy3d::Viewer(a0, a1); }, [](const std::string & a0, int const & a1){ return new PyCallBack_easy3d_Viewer(a0, a1); } ), "doc");
Expand Down
4 changes: 2 additions & 2 deletions python/tutorials/tutorial_201_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@
viewer.add_model(mesh_file)

# Alternatively, you can load the model as a `SurfaceMesh` object and add it:
# model = easy3d.SurfaceMeshIO.load(mesh_file)
# viewer.add_model(model)
# mesh = easy3d.SurfaceMeshIO.load(mesh_file)
# viewer.add_model(mesh)

# -------------------------------------------------------------------------------
# Loading and Adding a 3D Point Cloud Model
Expand Down

0 comments on commit 00bf217

Please sign in to comment.