Skip to content

Conversation

@j-fu
Copy link
Member

@j-fu j-fu commented Jun 23, 2025

use plot_triangulateio from GridVisualize.

use plot_triangulateio from GridVisualize.
@j-fu j-fu requested a review from Copilot June 23, 2025 18:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the grid visualization functionality to support Triangle v3 by replacing the legacy plotting routines with the new plot_triangulateio! API from GridVisualize.

  • Updated the test in runtests.jl to expect a CairoMakie.Scene instead of a CairoMakie.Figure.
  • Refactored the builderplot function in src/plot.jl to use the new plot_triangulateio! API and adjusted its return behavior based on the reveal flag.
  • Added necessary GridVisualize imports in src/SimplexGridFactory.jl to support the new plotting functions.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
test/runtests.jl Updated test assertion for the new expected type (Scene)
src/plot.jl Refactored builderplot to leverage plot_triangulateio! and updated docstring
src/SimplexGridFactory.jl Added GridVisualize imports to support new plotting API
Comments suppressed due to low confidence (1)

src/plot.jl:81

  • [nitpick] Consider documenting that builderplot returns different types depending on the 'reveal' flag; this will help future developers understand the API behavior.
    if reveal

j-fu and others added 2 commits June 23, 2025 21:04
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@j-fu j-fu merged commit 818ea96 into master Jun 23, 2025
8 checks passed
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