Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 4, 2025

Applies code style and correctness fixes identified in the code review for the implicit function clipping feature.

Code Style Fixes

  • Remove trailing whitespace in src/meshutils.h, src/mesh.cpp, tests/test_mesh_operations.py
  • Remove unnecessary parentheses in boolean expressions in loop_cgal/__init__.py
  • Remove unused pyvista import in examples/cut_example.py

Configuration Fixes

  • Fix TOML syntax in pyproject.toml to use proper nested table format for [project.optional-dependencies]
  • Fix GitHub Actions conditional to use startsWith(matrix.os, 'macos') instead of invalid || operator

Logic Corrections

  • Change KEEP_POSITIVE_SIDE filtering from v <= value to v < value in src/mesh.cpp to correctly exclude negative side while preserving boundary
  • Remove incorrect -> bool return type annotation from validate_vertices_and_faces() (raises ValueError on failure, doesn't return False)

Build System

  • Reorganize CMake target properties to avoid setting .so suffix unconditionally before overriding for Windows

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: lachlangrose <7371904+lachlangrose@users.noreply.github.com>
@lachlangrose lachlangrose marked this pull request as ready for review November 4, 2025 02:00
@lachlangrose lachlangrose merged commit 184369e into fix/adding-implicit-function-cutting Nov 4, 2025
48 checks passed
Copilot AI changed the title [WIP] Add option to clip surface with implicit function Address code review feedback from PR #16 Nov 4, 2025
@lachlangrose lachlangrose deleted the copilot/sub-pr-16 branch November 4, 2025 02:00
Copilot AI requested a review from lachlangrose November 4, 2025 02:00
lachlangrose added a commit that referenced this pull request Nov 4, 2025
* fix: add copy method and vtk method for trimesh object

* chore: ignore windows build

* fix: specify .so for unix and pyd for windows

* ci: rename examples and adding test suite + git action

* fix: adding option to cut surface with a property
this is interpreted as a signed distance function
and could be evaluated on the triangle nodes
from an implicit function. Note if the surface
is remeshed the property values will need to be
re-evaluated on the new nodes.

* fix: move checks to separate file and add import/export from np arrays

* ci: use loop python versions (#15)

* ci: adding windows/mac tests

* ci: use c:: for vcpkg and revert to loop python env var

* ci: use env var for mac as well

* ci: update windows cmake instructions

* Update environment variable for vcpkg toolchain

Set VCPKG_ROOT environment variable for package build.

* test: update test ci runner to use pypi runner template

* tests: add cgal/eigen to nix

* fix: specify python versions

* fix: use exact meshes for clipping, avoid infinite hangs

* fix: set default kernel to exact, use double for speed at risk of hanging

ci: change name of tester to testing

* Update examples/cut_example.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* [WIP] Add option to clip surface with implicit function (#17)

* Initial plan

* Address code review comments

Co-authored-by: lachlangrose <7371904+lachlangrose@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lachlangrose <7371904+lachlangrose@users.noreply.github.com>

* fix: add dlls to package for wheel

* tests: remove tmp files

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: lachlangrose <7371904+lachlangrose@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants