Skip to content

Commit

Permalink
hint about path
Browse files Browse the repository at this point in the history
  • Loading branch information
LiangliangNan committed Jan 11, 2025
1 parent ac7b651 commit f5dfd54
Show file tree
Hide file tree
Showing 22 changed files with 98 additions and 74 deletions.
4 changes: 2 additions & 2 deletions python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ file for the bindings and install it globally. This will make Easy3D work like o

Below are the detailed steps for creating the wheel file and installation.

- Step 1: Install the build Tool (if not exist)
- Step 1: Install the build Tool (only if not installed)

- `pip install build`

Expand All @@ -48,7 +48,7 @@ Below are the detailed steps for creating the wheel file and installation.

- Step 3: Install the Wheel

- `pip install dist/easy3d-2.6.0-py3-none-any.whl`
- `pip install dist/easy3d-2.6.0-py3-none-any.whl` # Update the wheel file name accordingly

You can verify the installation by running the following command:

Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_101_data_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_102_point_cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_103_surface_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
11 changes: 7 additions & 4 deletions python/tutorials/tutorial_104_properties.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,13 @@
# The same principles apply to PointCloud as well.
# -----------------------------------------------------------------------------

# If Easy3D was built locally, add its Python bindings to the system path.
# This step is not required if Easy3D is installed globally via `pip`.
# For detailed instructions on building and installing Easy3D, refer to:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_201_viewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_202_multiviewer.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_203_drawables.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_204_imposters.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
2 changes: 1 addition & 1 deletion python/tutorials/tutorial_205_offscreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.
Expand Down
11 changes: 7 additions & 4 deletions python/tutorials/tutorial_206_text_mesher.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,13 @@
# 2. Visualize the generated 3D text meshes using the default Easy3D Viewer.
# -----------------------------------------------------------------------------

# If Easy3D was built locally, add its Python bindings to the system path.
# This is not required if Easy3D is installed globally via `pip'.
# For detailed instructions on building and installing Easy3D, refer to:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
11 changes: 7 additions & 4 deletions python/tutorials/tutorial_207_scalar_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
# - Visualizing the scalar field by mapping scalar values to colors.
# -----------------------------------------------------------------------------

# If Easy3D was built locally, add its Python bindings to the system path.
# This step is not required if Easy3D is installed globally via `pip`.
# For detailed instructions on building and installing Easy3D, refer to:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
11 changes: 7 additions & 4 deletions python/tutorials/tutorial_208_interactive_function_execution.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@
# useful for demonstrating and testing 3D data processing algorithms.
# -----------------------------------------------------------------------------

# If Easy3D was built locally, add its Python bindings to the system path.
# This step is not required if Easy3D is installed globally via `pip`.
# For detailed instructions on building and installing Easy3D, refer to:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
10 changes: 6 additions & 4 deletions python/tutorials/tutorial_301_normal_estimation.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,16 @@
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# If Easy3D was built locally, you need to add its Python bindings to the system path.
# This step is not required if Easy3D is installed globally via `pip`.
# For detailed instructions on building and installing Easy3D, refer to:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

# Import the Easy3D library, which provides tools for 3D visualization and geometry processing.
import easy3d

Expand Down
13 changes: 6 additions & 7 deletions python/tutorials/tutorial_302_surface_reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,13 @@
# 5. Visualize the reconstructed surface mesh in an interactive viewer.
# -----------------------------------------------------------------------------

# -----------------------------------------------------------------------------
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -----------------------------------------------------------------------------
# If the Easy3D Python bindings are located in a custom directory (e.g., from
# a local build), you'll need to add that directory to the system path to
# access them. You can skip this step if the bindings are installed globally
# via `pip'. For building and installing Python bindings of Easy3D,
# # please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
17 changes: 6 additions & 11 deletions python/tutorials/tutorial_303_plane_extraction.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,13 @@
# 4. Visualize the extracted planar segments.
# -----------------------------------------------------------------------------

# -----------------------------------------------------------------------------
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -----------------------------------------------------------------------------
# If the Easy3D Python bindings are located in a custom directory (e.g., from
# a local build), you'll need to add that directory to the system path to
# access them. You can skip this step if the bindings are installed globally
# via `pip`.
#
# Please refer to the official documentation for building and installing
# Easy3D Python bindings:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md

# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
11 changes: 7 additions & 4 deletions python/tutorials/tutorial_304_point_cloud_downsampling.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,13 @@
# using Easy3D's `MultiViewer`.
# -----------------------------------------------------------------------------

# If you built Easy3D locally, you'll need to add its Python bindings to the
# system path to access them. If Easy3D is globally installed via `pip`, this
# step is not necessary. For building and installing Python bindings of Easy3D,
# # please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
11 changes: 7 additions & 4 deletions python/tutorials/tutorial_401_mesh_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@
# surface of the mesh.
# -----------------------------------------------------------------------------

# If Easy3D is not installed via `pip` but built locally, add its Python bindings
# to the system path. For detailed instructions on building and installing
# Python bindings of Easy3D, visit:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
9 changes: 7 additions & 2 deletions python/tutorials/tutorial_402_mesh_hole_filling.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,13 @@
# vertices are connected but do not form a closed surface. The size of the hole
# is measured by the number of boundary edges in the loop.

# If Easy3D is not installed via `pip`, you may need to add its Python bindings
# to the system path. Modify the path below according to your setup.
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
11 changes: 7 additions & 4 deletions python/tutorials/tutorial_403_mesh_simplification.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,13 @@
# - Level-of-detail (LOD) modeling in computer graphics.
# -----------------------------------------------------------------------------

# If Easy3D is not installed via `pip`, you may need to add its Python bindings
# to the system path. For detailed instructions on building and installing
# # Python bindings of Easy3D, visit:
# # https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md
# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
12 changes: 7 additions & 5 deletions python/tutorials/tutorial_404_mesh_subdivision.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@
# built-in visualization tools.
# -----------------------------------------------------------------------------

# If Easy3D is not installed via `pip`, you may need to add its Python bindings
# to the system path. For detailed instructions on building and installing
# Python bindings of Easy3D, visit:
# https://github.com/LiangliangNan/Easy3D/blob/main/ReadMe.md

# -------------------------------------------------------------------------------
# Adding Easy3D Python Bindings to the System Path
# -------------------------------------------------------------------------------
# This is required if the bindings are not installed via `pip` but are located in
# a local build directory. For building and installing Python bindings of Easy3D,
# please refer to: https://github.com/LiangliangNan/Easy3D/blob/main/README.md
# -------------------------------------------------------------------------------
import sys
sys.path.append("../../cmake-build-release/lib/python") # Update this path to point to your Easy3D build directory.

Expand Down
Loading

0 comments on commit f5dfd54

Please sign in to comment.