Skip to content

Commit

Permalink
use path properly
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvanmele committed Nov 21, 2023
1 parent 79b5332 commit 26013ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
4 changes: 1 addition & 3 deletions docs/examples/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
from compas_view2.app import App
from compas_cgal.reconstruction import poisson_surface_reconstruction

HERE = Path(__file__).parent
DATA = HERE / ".." / ".." / "data"
FILE = DATA / "oni.xyz"
FILE = Path(__file__).parent.parent.parent / "data" / "oni.xyz"

points = []
normals = []
Expand Down
3 changes: 1 addition & 2 deletions docs/examples/remeshing.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
from compas_cgal.meshing import mesh_remesh
from compas_view2.app import App

HERE = Path(__file__).parent.absolute()
FILE = HERE.parent.parent / "data" / "Bunny.ply"
FILE = Path(__file__).parent.parent.parent / "data" / "Bunny.ply"

# ==============================================================================
# Get the bunny and construct a mesh
Expand Down
4 changes: 1 addition & 3 deletions docs/examples/skeletonization.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
from compas_cgal.skeletonization import mesh_skeleton
from compas_cgal.subdivision import mesh_subdivide_sqrt3

HERE = Path(__file__).parent
DATA = HERE / ".." / ".." / "data"
FILE = DATA / "elephant.off"
FILE = Path(__file__).parent.parent.parent / "data" / "elephant.off"

Rx = Rotation.from_axis_and_angle([1, 0, 0], math.radians(60))
Ry = Rotation.from_axis_and_angle([0, 1, 0], math.radians(5))
Expand Down
3 changes: 1 addition & 2 deletions docs/examples/slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@

from compas_cgal.slicer import slice_mesh_planes

HERE = Path(__file__).parent.absolute()
FILE = HERE.parent.parent / "data" / "3DBenchy.stl"
FILE = Path(__file__).parent.parent.parent / "data" / "3DBenchy.stl"

# ==============================================================================
# Get benchy and construct a mesh
Expand Down

0 comments on commit 26013ea

Please sign in to comment.