Skip to content

Add quadractic and cubic Bezier curves to custom symbols language#9020

Merged
joa-quim merged 11 commits into
masterfrom
customsymb-bezier
May 18, 2026
Merged

Add quadractic and cubic Bezier curves to custom symbols language#9020
joa-quim merged 11 commits into
masterfrom
customsymb-bezier

Conversation

@joa-quim
Copy link
Copy Markdown
Member

@joa-quim joa-quim commented May 15, 2026

As title says. The idea is to be able to convert SVG images, that use a lot of Bezier curves, into GMT custom symbols. I'm labeling this as WIP because I have this locally for some time and forgot the details and code starts to rotten

Assisted-by: Claude Sonnet4.6

@joa-quim
Copy link
Copy Markdown
Member Author

The bezier_demo_cubic.sh test should produce this

cubic_demo

@joa-quim joa-quim changed the title WIP: Add quadractic and cubic Bezier curves to custom symbols language Add quadractic and cubic Bezier curves to custom symbols language May 17, 2026
@joa-quim joa-quim merged commit b577914 into master May 18, 2026
9 of 19 checks passed
@joa-quim joa-quim deleted the customsymb-bezier branch May 18, 2026 14:09
@Esteban82 Esteban82 added enhancement Improving an existing feature add-changelog Add PR to the changelog AI-assisted All (or most) of the code was written by Artificial Intelligence. labels May 18, 2026
@Esteban82
Copy link
Copy Markdown
Member

The bezier_demo_cubic.sh test should produce this

It works for me. I got this figure. Sorry by the delay.

cubic_demo

@Esteban82
Copy link
Copy Markdown
Member

The images you have post lately all suffer from same issue, non visible.

I didn't add any new image. I just cited the already post image. In my side looks fine.

@joa-quim
Copy link
Copy Markdown
Member Author

Hmm, I see a 404

image

@seisman
Copy link
Copy Markdown
Member

seisman commented May 19, 2026

The test/psxy/bezier_demo_quadratic.sh fails because qbezier_test.def doesn't exist:

+ ctest --output-on-failure --force-new-ctest-process -j4 --timeout 480 --rerun-failed
Test project /home/runner/work/gmt/gmt/build
    Start 1034: test/psxy/bezier_demo_quadratic.sh
1/1 Test #1034: test/psxy/bezier_demo_quadratic.sh ...***Failed    0.73 sec
Set GMT_SESSION_NAME = 80226
Error: RROR]: Could not find either custom symbol or EPS macro qbezier_test
Error: RROR]: Option -S: Parsing failure
ERROR: gmtest:90
memtrack errors: 0
exit status: 1
ERROR: bezier_demo_quadratic.sh:20
memtrack errors: 0
exit status: 1

@joa-quim
Copy link
Copy Markdown
Member Author

Ok, added it directly on master (by mistake)

@seisman
Copy link
Copy Markdown
Member

seisman commented May 19, 2026

The name qbezier_test.def is confusing. If it's only for testing purpose, it should not be added to share/custom.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

add-changelog Add PR to the changelog AI-assisted All (or most) of the code was written by Artificial Intelligence. enhancement Improving an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants