Skip to content

Commit 5452f23

Browse files
Fix projection example imports from meshing to projection module
Functions project_mesh_on_mesh, project_points_on_mesh, pull_mesh_on_mesh, and pull_points_on_mesh were moved to compas_cgal.projection but the example still imported them from compas_cgal.meshing, causing ImportError. Changelog: added Fixed entry under Unreleased in CHANGELOG.md.
1 parent 6851fda commit 5452f23

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1515
* Added `docs/examples/example_booleans_with_edges.md` and `example_booleans_with_face_source.md` (with their images) covering the corefinement intersection-edge and face-source-tracking variants of the boolean operations; both wired into the Examples nav.
1616
* Added `docs/examples/example_boolean_difference_mesh_meshes.md` (CSG drilled rounded cube) and its Examples nav entry.
1717

18+
### Fixed
19+
20+
* Fixed `docs/examples/example_projection.py` imports: `project_mesh_on_mesh`, `project_points_on_mesh`, `pull_mesh_on_mesh`, and `pull_points_on_mesh` were incorrectly imported from `compas_cgal.meshing` instead of `compas_cgal.projection`, causing `ImportError` for anyone running the example.
21+
1822
### Changed
1923

2024
* Bumped `nanobind` build-system requirement from `>=1.3.2` to `>=2.12` to fix `refined_delaunay_mesh` (and other `Eigen::Ref` overloads) raising `TypeError: incompatible function arguments` when called with `numpy>=2.4.0`.

docs/examples/example_projection.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
from compas.geometry import Point
55
from compas_viewer import Viewer
66

7-
from compas_cgal.meshing import project_mesh_on_mesh
8-
from compas_cgal.meshing import project_points_on_mesh
9-
from compas_cgal.meshing import pull_mesh_on_mesh
10-
from compas_cgal.meshing import pull_points_on_mesh
7+
from compas_cgal.projection import project_mesh_on_mesh
8+
from compas_cgal.projection import project_points_on_mesh
9+
from compas_cgal.projection import pull_mesh_on_mesh
10+
from compas_cgal.projection import pull_points_on_mesh
1111

1212
# =============================================================================
1313
# Source

0 commit comments

Comments
 (0)